ci: add mypy check (#161)

* ci: add mypy check

* fix remaining mypy issues

* ignore whole methods
This commit is contained in:
Jiri
2024-05-16 13:25:53 +08:00
committed by GitHub
parent 66aecf2030
commit c09f50c568
23 changed files with 194 additions and 138 deletions

View File

@@ -1,2 +1,8 @@
[tool.ruff]
exclude = ["main_window.py", "home_ui.py", "resources.py", "resources_rc.py"]
[tool.mypy]
strict_optional = false
disable_error_code = ["union-attr", "annotation-unchecked", "import-untyped"]
explicit_package_bases = true
warn_unused_ignores = true