diff --git a/.gitignore b/.gitignore index 5a595d00a..33007330a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,5 @@ .cache/ /build/ -.mypy_cache/ *.pyc *.os *.o diff --git a/README.md b/README.md index cfbf7d359..a28dbddd3 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 450dda5d4..98be4e3e3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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