2020-05-28 15:05:04 -07:00
|
|
|
[mypy]
|
2023-07-20 21:56:57 -07:00
|
|
|
python_version = 3.11
|
2022-05-02 18:48:04 -05:00
|
|
|
plugins = numpy.typing.mypy_plugin
|
2022-09-27 20:43:05 -07:00
|
|
|
files = body, common, docs, scripts, selfdrive, site_scons, system, tools
|
2022-12-31 21:00:50 -08:00
|
|
|
exclude = ^(cereal/)|(opendbc/)|(panda/)|(laika/)|(laika_repo/)|(rednose/)|(rednose_repo/)|(tinygrad/)|(tinygrad_repo/)|(xx/)
|
2022-09-27 20:43:05 -07:00
|
|
|
|
|
|
|
|
; 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
|