From 10776dbb079be55167840e68876dd0d277089921 Mon Sep 17 00:00:00 2001 From: Timmy Welch Date: Thu, 9 Nov 2023 18:23:57 -0800 Subject: [PATCH] Fix flake8 issues --- comictaggerlib/main.py | 11 ++++++++--- comictaggerlib/taggerwindow.py | 8 +++++--- setup.cfg | 1 + 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/comictaggerlib/main.py b/comictaggerlib/main.py index c648bb7..60e5e8e 100644 --- a/comictaggerlib/main.py +++ b/comictaggerlib/main.py @@ -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, ) diff --git a/comictaggerlib/taggerwindow.py b/comictaggerlib/taggerwindow.py index c44787c..4cc3fb0 100644 --- a/comictaggerlib/taggerwindow.py +++ b/comictaggerlib/taggerwindow.py @@ -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." ), ) diff --git a/setup.cfg b/setup.cfg index 28c2e4c..5b986ce 100644 --- a/setup.cfg +++ b/setup.cfg @@ -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