style: enforce consistent codestyle via ruff config and auto-fixes
- Configure ruff: isort, pyupgrade, bugbear, flake8 rules - Auto-fix import sorting, redundant parens, exception chaining - Remove from __future__ import annotations (Python 3.13+) - Convert debug print() to logger calls - Fix typo applicaiton → application in icon_resolver - Remove bare returns in animator setters - Move TYPE_CHECKING imports to runtime where used at runtime
This commit is contained in:
60 files changed
+243
-217
No files matched your search
@@ -16,7 +16,7 @@ class AppName:
|
||||
return None
|
||||
|
||||
desktop_app_name = wmclass
|
||||
with open(os.path.join(self.path, desktop_file), "r") as f:
|
||||
with open(os.path.join(self.path, desktop_file)) as f:
|
||||
lines = f.readlines()
|
||||
for line in lines:
|
||||
if line.startswith("Name="):
|
||||
|
||||
Reference in new issue
Block a user