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

+2 -4
View File
@@ -7,15 +7,13 @@ changes. It is implemented as a singleton and intended to be reused by any
module that needs dynamic configuration.
"""
from __future__ import annotations
from typing import Any, Callable, Dict, List, Optional
from fabric.utils import Gio, GLib, logger, os
from tomlkit import document as toml_document
from tomlkit import dump as toml_dump
from tomlkit import load as toml_load
from tomlkit.items import Integer, String, Bool, Array
from tomlkit.items import Array, Bool, Integer, String
from utils.utils import toml_file
@@ -97,7 +95,7 @@ class ConfigService:
def _load_config(self) -> None:
try:
if os.path.exists(self._config_file):
with open(self._config_file, "r") as f:
with open(self._config_file) as f:
self._config = toml_load(f)
else:
try: