Add mypy to checks

This commit is contained in:
Mathieu Comandon 2023-08-26 01:07:48 -07:00
parent 2f066a1339
commit 6fc6d9512a
2 changed files with 3 additions and 5 deletions

View file

@ -1,3 +1 @@
lutris/util/cookies.py:0: error: Module "http.cookiejar" has no attribute "_warn_unhandled_exception" [attr-defined]
lutris/util/system.py:0: error: Argument 1 to "lru_cache" has incompatible type "Callable[[Any, Any], Any]"; expected "Optional[int]" [arg-type]
lutris/util/linux.py:0: error: Function "Callable[[bool], Tuple[str, str, str]]" could always be true in boolean context [truthy-function]

View file

@ -90,7 +90,7 @@ snap:
snapcraft
dev:
pip3 install isort flake8 pylint autopep8 pytest
pip3 install isort flake8 pylint autopep8 pytest mypy mypy-baseline
# ============
# Style checks
@ -109,7 +109,7 @@ autopep8:
# Static analysis
# ===============
check: isort-check flake8 pylint
check: isort-check flake8 pylint mypy
isort-check:
isort lutris -c