mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-18 20:03:53 +08:00
* 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 250c632f18ecb3d33ffb931e15425f9314a0964b.
17 lines
477 B
INI
17 lines
477 B
INI
[mypy]
|
|
python_version = 3.8
|
|
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
|