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 commit 250c632f18
.
pull/25914/head
parent
96ed5aa581
commit
4e310b807f
8 changed files with 665 additions and 433 deletions
File diff suppressed because it is too large
Load Diff
@ -1,4 +1,16 @@ |
|||||||
[mypy] |
[mypy] |
||||||
python_version = 3.8 |
python_version = 3.8 |
||||||
ignore_missing_imports = True |
|
||||||
plugins = numpy.typing.mypy_plugin |
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