Fix flake8 issues

This commit is contained in:
Timmy Welch 2023-11-09 18:23:57 -08:00
parent 2d3f68167c
commit 10776dbb07
3 changed files with 14 additions and 6 deletions

View File

@ -141,7 +141,8 @@ class App:
def register_settings(self) -> None:
self.manager = settngs.Manager(
"""A utility for reading and writing metadata to comic archives.\n\n\nIf no options are given, %(prog)s will run in windowed mode.""",
"A utility for reading and writing metadata to comic archives.\n\n\n"
+ "If no options are given, %(prog)s will run in windowed mode.",
"For more help visit the wiki at: https://github.com/comictagger/comictagger/wiki",
)
ctsettings.register_commandline_settings(self.manager)
@ -182,7 +183,9 @@ class App:
if len(talkers) < 1:
error = error = (
f"Failed to load any talkers, please re-install and check the log located in '{self.config[0].Runtime_Options_config.user_log_dir}' for more details",
"Failed to load any talkers, please re-install and check the log located in '"
+ str(self.config[0].Runtime_Options_config.user_log_dir)
+ "' for more details",
True,
)
@ -209,7 +212,9 @@ class App:
if not self.config_load_success:
error = (
f"Failed to load settings, check the log located in '{self.config[0].Runtime_Options_config.user_log_dir}' for more details",
"Failed to load settings, check the log located in '"
+ str(self.config[0].Runtime_Options_config.user_log_dir)
+ "' for more details",
True,
)

View File

@ -1619,7 +1619,8 @@ class TaggerWindow(QtWidgets.QMainWindow):
reply = QtWidgets.QMessageBox.question(
self,
"Copy Tags",
f"Are you sure you wish to copy the {MetaDataStyle.name[src_style]} tags to {MetaDataStyle.name[dest_style]} tags in {has_src_count} archive(s)?",
f"Are you sure you wish to copy the {MetaDataStyle.name[src_style]}"
+ f" tags to {MetaDataStyle.name[dest_style]} tags in {has_src_count} archive(s)?",
QtWidgets.QMessageBox.StandardButton.Yes,
QtWidgets.QMessageBox.StandardButton.No,
)
@ -1837,8 +1838,9 @@ class TaggerWindow(QtWidgets.QMainWindow):
self,
self.config[0],
(
f"You have selected {len(ca_list)} archive(s) to automatically identify and write {MetaDataStyle.name[style]} tags to."
"\n\nPlease choose config below, and select OK to Auto-Tag."
f"You have selected {len(ca_list)} archive(s) to automatically identify and write "
+ MetaDataStyle.name[style]
+ " tags to.\n\nPlease choose config below, and select OK to Auto-Tag."
),
)

View File

@ -291,3 +291,4 @@ extend-exclude = venv, scripts, build, dist, comictaggerlib/ctversion.py
per-file-ignores =
comictaggerlib/cli.py: T20
build-tools/generate_settngs.py: T20
tests/*: L