Add type hints and ruff/mypy config

Annotate all functions and check them with mypy --strict (needs
python-pygobject-stubs). pyproject.toml holds only tool config since
the PKGBUILD installs the script directly.
This commit is contained in:
Daniele Fucini
2026-10-16 17:21:34 +02:00
parent 13c1afd7b6
commit a36e700df6
3 changed files with 48 additions and 25 deletions
+10
View File
@@ -0,0 +1,10 @@
[tool.ruff]
line-length = 120
extend-include = ["xautolock-inhibit"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "B", "UP"]
[tool.mypy]
files = ["xautolock-inhibit"]
strict = true