Files
msgq/pyproject.toml
Shane Smiskol 8dd787e9a6 mypy: check untyped definitions (#517)
* add cereal mypy.ini

* mypy doesn't use unittest asserts yet

* Argument 1 to "len" has incompatible type "object"; expected "Sized"  [arg-type]

* type ports

* int|none

* final thing

* move to pyproject.toml

* clean p
2023-08-17 20:19:01 -07:00

21 lines
506 B
TOML

# https://beta.ruff.rs/docs/configuration/#using-pyprojecttoml
[tool.ruff]
select = ["E", "F", "W", "PIE", "C4", "ISC", "RUF100", "A"]
ignore = ["W292", "E741", "E402", "C408", "ISC003"]
line-length = 160
target-version="py311"
flake8-implicit-str-concat.allow-multiline=false
[mypy.tool]
# 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
check_untyped_defs=true