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]
|
||||
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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue