Skip to content

Commit f4f2e5a

Browse files
authored
Merge pull request #68 from seowings/main
Update Licensing Information
2 parents 1c7a3b3 + 476ead6 commit f4f2e5a

32 files changed

+60
-58
lines changed

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ markdown_extensions:
2626

2727
theme: readthedocs
2828

29-
copyright: © Copyright 2024 SERP Wings
29+
copyright: © Copyright 2025 SERP Wings

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
setup.py
77
8-
Copyright (C) 2020-2024 Faisal Shahzad <info@serpwings.com>
8+
Copyright (C) 2020-2025 Faisal Shahzad <info@serpwings.com>
99
1010
<LICENSE_BLOCK>
1111
The contents of this file are subject to version 3 of the

src/staticwordpress/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
src/staticwordpress/__init__.py
99
10-
Copyright (C) 2020-2024 Faisal Shahzad <info@serpwings.com>
10+
Copyright (C) 2020-2025 Faisal Shahzad <info@serpwings.com>
1111
1212
<LICENSE_BLOCK>
1313
The contents of this file are subject to version 3 of the

src/staticwordpress/cli/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
src/staticwordpress/cli/__init__.py
99
10-
Copyright (C) 2020-2024 Faisal Shahzad <info@serpwings.com>
10+
Copyright (C) 2020-2025 Faisal Shahzad <info@serpwings.com>
1111
1212
<LICENSE_BLOCK>
1313
The contents of this file are subject to version 3 of the

src/staticwordpress/core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
src/staticwordpress/core/__init__.py
99
10-
Copyright (C) 2020-2024 Faisal Shahzad <info@serpwings.com>
10+
Copyright (C) 2020-2025 Faisal Shahzad <info@serpwings.com>
1111
1212
<LICENSE_BLOCK>
1313
The contents of this file are subject to version 3 of the

src/staticwordpress/core/constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
src/staticwordpress/core/constants.py
99
10-
Copyright (C) 2020-2024 Faisal Shahzad <info@serpwings.com>
10+
Copyright (C) 2020-2025 Faisal Shahzad <info@serpwings.com>
1111
1212
<LICENSE_BLOCK>
1313
The contents of this file are subject to version 3 of the

src/staticwordpress/core/crawler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
src/staticwordpress/core/crawler.py
99
10-
Copyright (C) 2020-2024 Faisal Shahzad <info@serpwings.com>
10+
Copyright (C) 2020-2025 Faisal Shahzad <info@serpwings.com>
1111
1212
<LICENSE_BLOCK>
1313
The contents of this file are subject to version 3 of the

src/staticwordpress/core/errors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
src\staticwordpress\core\errors.py
99
10-
Copyright (C) 2020-2024 Faisal Shahzad <info@serpwings.com>
10+
Copyright (C) 2020-2025 Faisal Shahzad <info@serpwings.com>
1111
1212
<LICENSE_BLOCK>
1313
The contents of this file are subject to version 3 of the

src/staticwordpress/core/github.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
src/staticwordpress/core/github.py
99
10-
Copyright (C) 2020-2024 Faisal Shahzad <info@serpwings.com>
10+
Copyright (C) 2020-2025 Faisal Shahzad <info@serpwings.com>
1111
1212
<LICENSE_BLOCK>
1313
The contents of this file are subject to version 3 of the
@@ -82,12 +82,12 @@ def inner(self):
8282

8383
@check_gh_token
8484
def is_token_valid(self) -> bool:
85-
logging.info(f"Verifying Github Token.")
85+
logging.info("Verifying Github Token.")
8686
return self._gh_object.get_user().name != ""
8787

8888
@check_gh_token
8989
def is_repo_valid(self) -> bool:
90-
logging.info(f"Verifying Github Repository.")
90+
logging.info("Verifying Github Repository.")
9191
return self._gh_object.get_user().get_repo(self._gh_repo) is not None
9292

9393
@check_gh_token
@@ -116,7 +116,7 @@ def delete(self) -> None:
116116
def initialize(self) -> None:
117117
"""init repoinit repo"""
118118
logging.info(
119-
f"Initializing Git Repository - Orgins to GitHub will be set automatically"
119+
"Initializing Git Repository - Orgins to GitHub will be set automatically"
120120
)
121121

122122
login = self._gh_object.get_user().login
@@ -134,25 +134,25 @@ def initialize(self) -> None:
134134

135135
assert origin.exists()
136136

137-
logging.info(f"Updating Local Copy of Git Repository")
137+
logging.info("Updating Local Copy of Git Repository")
138138
origin.fetch()
139139

140140
@check_repo_dir
141141
def commit(self) -> None:
142142
"""commit to local repository"""
143-
logging.info(f"Start Committing Changes to Local Repository")
143+
logging.info("Start Committing Changes to Local Repository")
144144
now = datetime.now()
145145
date_time = now.strftime("%Y-%m-%d, %H:%M:%S")
146146
self._repo.git.add("--all")
147147
self._repo.index.commit(f"{date_time}: Update using static-wordpress software")
148-
logging.info(f"All Changes Committed to Local Repository")
148+
logging.info("All Changes Committed to Local Repository")
149149

150150
@check_repo_dir
151151
def publish(self):
152152
"""publish to github"""
153153
self._repo.create_head("main")
154154
if self._repo.remotes:
155-
logging.info(f"Pushing Repository Changes to GitHub!")
155+
logging.info("Pushing Repository Changes to GitHub!")
156156
self._repo.remotes[0].push("main")
157157
else:
158-
logging.error(f"Pushing Remote Repository on GitHub Failed.!")
158+
logging.error("Pushing Remote Repository on GitHub Failed.!")

src/staticwordpress/core/i18n.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
src/staticwordpress/core/i18n.py
99
10-
Copyright (C) 2020-2024 Faisal Shahzad <info@serpwings.com>
10+
Copyright (C) 2020-2025 Faisal Shahzad <info@serpwings.com>
1111
1212
<LICENSE_BLOCK>
1313
The contents of this file are subject to version 3 of the

src/staticwordpress/core/project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
src/staticwordpress/core/project.py
99
10-
Copyright (C) 2020-2024 Faisal Shahzad <info@serpwings.com>
10+
Copyright (C) 2020-2025 Faisal Shahzad <info@serpwings.com>
1111
1212
<LICENSE_BLOCK>
1313
The contents of this file are subject to version 3 of the
@@ -62,7 +62,7 @@ def __init__(self, path_: str = None) -> None:
6262
if isinstance(path_, str):
6363
path_ = Path(path_)
6464

65-
assert type(path_) == PosixPath or type(path_) == WindowsPath or path_ == None
65+
assert type(path_) == PosixPath or type(path_) == WindowsPath or path_ is None
6666

6767
self["version"] = VERISON
6868
self["path"] = path_

src/staticwordpress/core/redirects.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
src/staticwordpress/core/redirects.py
99
10-
Copyright (C) 2020-2024 Faisal Shahzad <info@serpwings.com>
10+
Copyright (C) 2020-2025 Faisal Shahzad <info@serpwings.com>
1111
1212
<LICENSE_BLOCK>
1313
The contents of this file are subject to version 3 of the
@@ -137,7 +137,7 @@ def get_from_plugin(self, redirects_api_path_: str, wp_auth_token_: str) -> None
137137
)
138138
except ResponseNotValid:
139139
logging.info(
140-
f"Redirects are not valid. Make sure that redirection plug is properly configured."
140+
"Redirects are not valid. Make sure that redirection plug is properly configured."
141141
)
142142

143143
def add_search(self, search_page_: str) -> None:

src/staticwordpress/core/search.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
src/staticwordpress/core/search.py
99
10-
Copyright (C) 2020-2024 Faisal Shahzad <info@serpwings.com>
10+
Copyright (C) 2020-2025 Faisal Shahzad <info@serpwings.com>
1111
1212
<LICENSE_BLOCK>
1313
The contents of this file are subject to version 3 of the
@@ -142,9 +142,11 @@ def add(self, soup_: BeautifulSoup, url_path_: str) -> None:
142142
self._search_index.append(
143143
{
144144
"title": title.string,
145-
"content": search_text
146-
if CONFIGS["SEARCH"]["INCLUDE"]["CONTENT"]
147-
else title.string,
145+
"content": (
146+
search_text
147+
if CONFIGS["SEARCH"]["INCLUDE"]["CONTENT"]
148+
else title.string
149+
),
148150
"href": clean_url,
149151
}
150152
)

src/staticwordpress/core/sitemaps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
src/staticwordpress/core/sitemaps.py
99
10-
Copyright (C) 2020-2024 Faisal Shahzad <info@serpwings.com>
10+
Copyright (C) 2020-2025 Faisal Shahzad <info@serpwings.com>
1111
1212
<LICENSE_BLOCK>
1313
The contents of this file are subject to version 3 of the

src/staticwordpress/core/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
src/staticwordpress/core/utils.py
99
10-
Copyright (C) 2020-2024 Faisal Shahzad <info@serpwings.com>
10+
Copyright (C) 2020-2025 Faisal Shahzad <info@serpwings.com>
1111
1212
<LICENSE_BLOCK>
1313
The contents of this file are subject to version 3 of the

src/staticwordpress/core/workflow.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
src/staticwordpress/core/workflow.py
99
10-
Copyright (C) 2020-2024 Faisal Shahzad <info@serpwings.com>
10+
Copyright (C) 2020-2025 Faisal Shahzad <info@serpwings.com>
1111
1212
<LICENSE_BLOCK>
1313
The contents of this file are subject to version 3 of the
@@ -182,11 +182,11 @@ def set_project(self, project_: Project) -> None:
182182

183183
def start_calculations(self) -> None:
184184
self._keep_running = True
185-
logging.warn(f"Background Processings is Starting")
185+
logging.warn("Background Processings is Starting")
186186

187187
def stop_calculations(self) -> None:
188188
self._keep_running = False
189-
logging.warn(f"Background Processings will Stop. Please wait!")
189+
logging.warn("Background Processings will Stop. Please wait!")
190190

191191
def download_zip_file(self) -> None:
192192
if self._keep_running:
@@ -341,22 +341,22 @@ def crawl_url(self, loc_: str) -> None:
341341

342342
# Project Verifications
343343
def verify_project_name(self) -> bool:
344-
logging.info(f"Verifying Project Name!")
344+
logging.info("Verifying Project Name!")
345345
return self._project.name != ""
346346

347347
def verify_src_url(self) -> bool:
348-
logging.info(f"Verifying Source Url!")
348+
logging.info("Verifying Source Url!")
349349
# TODO: replace with urllib implementation ???
350350
current_url = Crawler(loc_=self._project.src_url, scheme_=self._project.scheme)
351351
current_url.fetch()
352352
return current_url.status_code < 399 # non error status codes
353353

354354
def verify_output(self) -> bool:
355-
logging.info(f"Verifying Output Folder!")
355+
logging.info("Verifying Output Folder!")
356356
return self._project.output.exists()
357357

358358
def verify_wp_user(self) -> bool:
359-
logging.info(f"Verifying WordPress User Name!")
359+
logging.info("Verifying WordPress User Name!")
360360

361361
response = requests.get(
362362
self._project.redirects_api_url,
@@ -365,7 +365,7 @@ def verify_wp_user(self) -> bool:
365365
return response.status_code < 399
366366

367367
def verify_sitemap(self) -> bool:
368-
logging.info(f"Verifying Sitemap!")
368+
logging.info("Verifying Sitemap!")
369369

370370
response = requests.get(
371371
self._project.sitemap_url,
@@ -380,7 +380,7 @@ def verify_github_repo(self) -> bool:
380380
return self._github.is_repo_valid()
381381

382382
def verify_simply_static(self):
383-
logging.info(f"Verifying simply static plugin!")
383+
logging.info("Verifying simply static plugin!")
384384

385385
response = requests.get(
386386
self._project.src_url + CONFIGS["SIMPLYSTATIC"]["API"],

src/staticwordpress/gui/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
src/staticwordpress/gui/__init__.py
99
10-
Copyright (C) 2020-2024 Faisal Shahzad <info@serpwings.com>
10+
Copyright (C) 2020-2025 Faisal Shahzad <info@serpwings.com>
1111
1212
<LICENSE_BLOCK>
1313
The contents of this file are subject to version 3 of the

src/staticwordpress/gui/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
src/staticwordpress/gui/config.py
99
10-
Copyright (C) 2020-2024 Faisal Shahzad <info@serpwings.com>
10+
Copyright (C) 2020-2025 Faisal Shahzad <info@serpwings.com>
1111
1212
<LICENSE_BLOCK>
1313
The contents of this file are subject to version 3 of the

src/staticwordpress/gui/editor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
src\staticwordpress\gui\editor.py
99
10-
Copyright (C) 2020-2024 Faisal Shahzad <info@serpwings.com>
10+
Copyright (C) 2020-2025 Faisal Shahzad <info@serpwings.com>
1111
1212
<LICENSE_BLOCK>
1313
The contents of this file are subject to version 3 of the

src/staticwordpress/gui/logger.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
src/staticwordpress/gui/logger.py
99
10-
Copyright (C) 2020-2024 Faisal Shahzad <info@serpwings.com>
10+
Copyright (C) 2020-2025 Faisal Shahzad <info@serpwings.com>
1111
1212
<LICENSE_BLOCK>
1313
The contents of this file are subject to version 3 of the

src/staticwordpress/gui/main.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
src/staticwordpress/gui/mainwindow.py
99
10-
Copyright (C) 2020-2024 Faisal Shahzad <info@serpwings.com>
10+
Copyright (C) 2020-2025 Faisal Shahzad <info@serpwings.com>
1111
1212
<LICENSE_BLOCK>
1313
The contents of this file are subject to version 3 of the
@@ -300,7 +300,7 @@ def extract_url_from_raw_text(self):
300300
@logging_decorator
301301
def clear_crawl_cache(self):
302302
"""Clearing Crawl Cache"""
303-
logging.info(f"Clearing Crawl Cache")
303+
logging.info("Clearing Crawl Cache")
304304
get_remote_content.cache_clear()
305305

306306
def closeEvent(self, event):
@@ -508,8 +508,8 @@ def open_project(self):
508508
message_box = SWMessageBox(
509509
parent=self,
510510
title_="Open Project",
511-
message_=f"Project cannot be opened or selected path invalid."
512-
f"<br>Please try again with project folder.",
511+
message_="Project cannot be opened or selected path invalid."
512+
"<br>Please try again with project folder.",
513513
)
514514
message_box.exec()
515515

@@ -535,7 +535,7 @@ def show_project_settings(self):
535535
message_box = SWMessageBox(
536536
parent=self,
537537
title_="Project Settings",
538-
message_=f"No Project Available.",
538+
message_="No Project Available.",
539539
)
540540
message_box.exec()
541541

src/staticwordpress/gui/messagebox.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
src\staticwordpress\gui\messagebox.py
99
10-
Copyright (C) 2020-2024 Faisal Shahzad <info@serpwings.com>
10+
Copyright (C) 2020-2025 Faisal Shahzad <info@serpwings.com>
1111
1212
<LICENSE_BLOCK>
1313
The contents of this file are subject to version 3 of the

src/staticwordpress/gui/project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
src\staticwordpress\gui\project.py
99
10-
Copyright (C) 2020-2024 Faisal Shahzad <info@serpwings.com>
10+
Copyright (C) 2020-2025 Faisal Shahzad <info@serpwings.com>
1111
1212
<LICENSE_BLOCK>
1313
The contents of this file are subject to version 3 of the
@@ -523,7 +523,7 @@ def accept(self) -> None:
523523
self._project.save()
524524
return super().accept()
525525
else:
526-
logging.info(f"Current Project Settings are not valid.")
526+
logging.info("Current Project Settings are not valid.")
527527

528528
message_box = QMessageBox(parent=self)
529529
message_box.setText(

src/staticwordpress/gui/rawtext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
src/staticwordpress/gui/rawtext.py
99
10-
Copyright (C) 2020-2024 Faisal Shahzad <info@serpwings.com>
10+
Copyright (C) 2020-2025 Faisal Shahzad <info@serpwings.com>
1111
1212
<LICENSE_BLOCK>
1313
The contents of this file are subject to version 3 of the

0 commit comments

Comments
 (0)