Tweak mypy config
This commit is contained in:
parent
a8c20fab2c
commit
6940ec9700
1 changed files with 15 additions and 2 deletions
|
|
@ -41,6 +41,8 @@ mypy = [
|
||||||
[project.urls]
|
[project.urls]
|
||||||
Home = "https://github.com/sbidoul/runboat"
|
Home = "https://github.com/sbidoul/runboat"
|
||||||
|
|
||||||
|
# ruff
|
||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
fix = true
|
fix = true
|
||||||
target-version = "py310"
|
target-version = "py310"
|
||||||
|
|
@ -63,19 +65,30 @@ max-complexity = 15
|
||||||
[tool.ruff.isort]
|
[tool.ruff.isort]
|
||||||
known-first-party = ["runboat"]
|
known-first-party = ["runboat"]
|
||||||
|
|
||||||
|
# pytest
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
env_override_existing_values = 1
|
env_override_existing_values = 1
|
||||||
env_files = [".env.test"]
|
env_files = [".env.test"]
|
||||||
asyncio_mode = "strict"
|
asyncio_mode = "strict"
|
||||||
# flake8 config is in .flake8
|
|
||||||
|
# mypy
|
||||||
|
|
||||||
[tool.mypy]
|
[tool.mypy]
|
||||||
strict = true
|
strict = true
|
||||||
show_error_codes = true
|
show_error_codes = true
|
||||||
|
plugins = ["pydantic.mypy"]
|
||||||
|
|
||||||
[[tool.mypy.overrides]]
|
[[tool.mypy.overrides]]
|
||||||
module = ["uvicorn.*", "kubernetes.*", "ansi2html"]
|
module = ["kubernetes.*"]
|
||||||
ignore_missing_imports = true
|
ignore_missing_imports = true
|
||||||
|
|
||||||
|
[tool.pydantic-mypy]
|
||||||
|
init_forbid_extra = true
|
||||||
|
init_typed = true
|
||||||
|
warn_required_dynamic_aliases = true
|
||||||
|
|
||||||
|
# pip-deepfreeze
|
||||||
|
|
||||||
[tool.pip-deepfreeze.sync]
|
[tool.pip-deepfreeze.sync]
|
||||||
extras = "test,mypy"
|
extras = "test,mypy"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue