mirror of
https://github.com/commaai/opendbc.git
synced 2026-06-08 06:04:45 +08:00
Remove mypy configuration and references (#2995)
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,6 +1,5 @@
|
||||
.cache/
|
||||
/build/
|
||||
.mypy_cache/
|
||||
*.pyc
|
||||
*.os
|
||||
*.o
|
||||
|
||||
@@ -138,7 +138,7 @@ The above tests are themselves tested by:
|
||||
* a [mutation test](opendbc/safety/tests/misra/test_mutation.py) on the MISRA coverage
|
||||
* 100% line coverage enforced on the safety unit tests
|
||||
|
||||
In addition, we run the [ruff linter](https://github.com/astral-sh/ruff) and [mypy](https://mypy-lang.org/) on the car interface library.
|
||||
In addition, we run the [ruff linter](https://github.com/astral-sh/ruff) and [ty](https://github.com/astral-sh/ty) on the car interface library.
|
||||
|
||||
### Bounties
|
||||
|
||||
|
||||
@@ -66,20 +66,6 @@ ignore-words-list = "alo,ba,bu,deque,hda,grey,arange"
|
||||
builtin = "clear,rare,informal,code,names,en-GB_to_en-US"
|
||||
check-hidden = true
|
||||
|
||||
[tool.mypy]
|
||||
# helpful warnings
|
||||
warn_redundant_casts=true
|
||||
warn_unreachable=true
|
||||
warn_unused_ignores=true
|
||||
|
||||
# restrict dynamic typing
|
||||
warn_return_any=true
|
||||
|
||||
# allow implicit optionals for default args
|
||||
implicit_optional = true
|
||||
|
||||
explicit_package_bases=true
|
||||
|
||||
# https://beta.ruff.rs/docs/configuration/#using-pyprojecttoml
|
||||
[tool.ruff]
|
||||
line-length = 160
|
||||
@@ -135,7 +121,6 @@ possibly-missing-attribute = "ignore"
|
||||
unresolved-attribute = "ignore"
|
||||
unresolved-import = "ignore"
|
||||
|
||||
# Project uses mypy's implicit_optional = true style
|
||||
invalid-parameter-default = "ignore"
|
||||
|
||||
# Intentional LSP violations in subclass method signatures
|
||||
|
||||
Reference in New Issue
Block a user