From 383f66756a35662535f917cebf38e0fe7d6725dd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 20 Jan 2025 23:26:19 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- qtawesome/icon_browser.py | 2 +- qtawesome/iconic_font.py | 4 ++-- qtawesome/tests/test_qtawesome.py | 2 +- setupbase.py | 6 +++--- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/qtawesome/icon_browser.py b/qtawesome/icon_browser.py index f3d7bd2..385b57a 100644 --- a/qtawesome/icon_browser.py +++ b/qtawesome/icon_browser.py @@ -60,7 +60,7 @@ def __init__(self): # Filter section self._comboFont = QtWidgets.QComboBox(self) self._comboFont.setToolTip( - "Select the font prefix whose icons will " "be included in the filtering." + "Select the font prefix whose icons will be included in the filtering." ) self._comboFont.setMaximumWidth(75) self._comboFont.addItems([ALL_COLLECTIONS] + sorted(fontMaps.keys())) diff --git a/qtawesome/iconic_font.py b/qtawesome/iconic_font.py index ebff9e8..c23af17 100644 --- a/qtawesome/iconic_font.py +++ b/qtawesome/iconic_font.py @@ -397,7 +397,7 @@ def hook(obj): pass else: raise FontError( - "Failed to load character " "{0}:{1}".format(key, obj[key]) + "Failed to load character {0}:{1}".format(key, obj[key]) ) return result @@ -469,7 +469,7 @@ def icon(self, *names, **kwargs): ) else: warnings.warn( - "You need to have a running " "QApplication to use QtAwesome!" + "You need to have a running QApplication to use QtAwesome!" ) return QIcon() return self.icon_cache[cache_key] diff --git a/qtawesome/tests/test_qtawesome.py b/qtawesome/tests/test_qtawesome.py index 4b431fa..b94bc99 100644 --- a/qtawesome/tests/test_qtawesome.py +++ b/qtawesome/tests/test_qtawesome.py @@ -18,7 +18,7 @@ def test_segfault_import(): output_number = subprocess.call( - sys.executable + ' -c "import qtawesome ' '; qtawesome.icon()"', shell=True + sys.executable + ' -c "import qtawesome ; qtawesome.icon()"', shell=True ) assert output_number == 0 diff --git a/setupbase.py b/setupbase.py index 6abcb3a..3804981 100644 --- a/setupbase.py +++ b/setupbase.py @@ -168,9 +168,9 @@ def __zipped_files_data(self): files[style] = compressed_file.read() # Safety checks: - assert all( - style in files for style in self.FA_STYLES - ), "Not all FA styles found! Update code is broken." + assert all(style in files for style in self.FA_STYLES), ( + "Not all FA styles found! Update code is broken." + ) assert "icons.json" in files, "icons.json not found! Update code is broken." return files