Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 20, 2025
1 parent 153dcbe commit 383f667
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion qtawesome/icon_browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down
4 changes: 2 additions & 2 deletions qtawesome/iconic_font.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion qtawesome/tests/test_qtawesome.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions setupbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 383f667

Please sign in to comment.