configure mypy outside of pre-commit environment (#25892)
* add mypy config matching precommit * use local mypy, add files to config * excludes too * fix config * pylint is sad now... did it get updated? * fix typing hints * ignore * this should be a regexp * mypy doesn't like Deque despite inheriting MutableSequence * more excludes * Revert "pylint is sad now... did it get updated?" This reverts committaco250c632f18
. old-commit-hash:4e310b807f
parent
8a828af454
commit
23a4e66b17
8 changed files with 29 additions and 20 deletions
@ -1,3 +1,3 @@ |
||||
version https://git-lfs.github.com/spec/v1 |
||||
oid sha256:5fea746328dc90e4e1542a334508feda0616b2d19d7904f33a3ecfff2b1a6f79 |
||||
size 1621 |
||||
oid sha256:67078d38037d44571e909dee2288c4fe9f7a1cc3691fe3165c1628ff3d19cde6 |
||||
size 1736 |
||||
|
@ -1,3 +1,3 @@ |
||||
version https://git-lfs.github.com/spec/v1 |
||||
oid sha256:7d093d32dfcaf18972f9c62a0b87dc470ee0d74304ca8d659fc142ee0176b7c5 |
||||
size 188750 |
||||
oid sha256:848091d4b13abe8c0c97c997fc8641953e1685582560a45841bac625eb0991b4 |
||||
size 205318 |
||||
|
@ -1,4 +1,16 @@ |
||||
[mypy] |
||||
python_version = 3.8 |
||||
ignore_missing_imports = True |
||||
plugins = numpy.typing.mypy_plugin |
||||
files = body, common, docs, scripts, selfdrive, site_scons, system, tools |
||||
exclude = ^(pyextra/)|(cereal/)|(opendbc/)|(panda/)|(laika/)|(laika_repo/)|(rednose/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)|(xx/) |
||||
|
||||
; third-party packages |
||||
ignore_missing_imports = True |
||||
|
||||
; helpful warnings |
||||
warn_redundant_casts = True |
||||
warn_unreachable = True |
||||
warn_unused_ignores = True |
||||
|
||||
; restrict dynamic typing |
||||
warn_return_any = True |
||||
|
Loading…
Reference in new issue