mirror of
https://github.com/lutris/lutris
synced 2024-09-28 20:13:32 +00:00
Add mypy to checks
This commit is contained in:
parent
2f066a1339
commit
6fc6d9512a
|
@ -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]
|
||||
|
||||
|
|
4
Makefile
4
Makefile
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue