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:
sankalp committed 2026-07-12 18:38:13 +05:45
1 parent afd826d0c0
commit 096231bc44
60 files changed
+243 -217

No files matched your search

+1 -4
View File
@@ -1263,10 +1263,7 @@ class ModusNoti(Window):
app_name = getattr(notification, "app_name", "")
# Check if app name is in ignored list
if app_name in ignored_apps:
return True
return False
return app_name in ignored_apps
except Exception as e:
logger.warning(f"Failed to check if notification should be ignored: {e}")
return False
+1 -1
View File
@@ -3,7 +3,7 @@ import time
import uuid
from collections import OrderedDict
from fabric.utils import GdkPixbuf, get_relative_path, Gtk, logger, os
from fabric.utils import GdkPixbuf, Gtk, get_relative_path, logger, os
import shared.data as data