Tweak mypy config

This commit is contained in:
Stéphane Bidoul 2023-11-19 13:09:28 +01:00
parent a8c20fab2c
commit 6940ec9700

View file

@ -41,6 +41,8 @@ mypy = [
[project.urls]
Home = "https://github.com/sbidoul/runboat"
# ruff
[tool.ruff]
fix = true
target-version = "py310"
@ -63,19 +65,30 @@ max-complexity = 15
[tool.ruff.isort]
known-first-party = ["runboat"]
# pytest
[tool.pytest.ini_options]
env_override_existing_values = 1
env_files = [".env.test"]
asyncio_mode = "strict"
# flake8 config is in .flake8
# mypy
[tool.mypy]
strict = true
show_error_codes = true
plugins = ["pydantic.mypy"]
[[tool.mypy.overrides]]
module = ["uvicorn.*", "kubernetes.*", "ansi2html"]
module = ["kubernetes.*"]
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]
extras = "test,mypy"