29 lines
796 B
TOML
29 lines
796 B
TOML
# Настройки инструментов качества. Зависимости — в requirements*.txt, pytest — в pytest.ini.
|
|
|
|
[tool.ruff]
|
|
line-length = 120
|
|
target-version = "py311"
|
|
|
|
[tool.ruff.lint]
|
|
select = ["E", "F", "I", "UP", "B", "PL"]
|
|
|
|
[tool.ruff.lint.isort]
|
|
known-first-party = ["src", "scripts"]
|
|
|
|
[tool.mypy]
|
|
python_version = "3.11"
|
|
strict = false
|
|
check_untyped_defs = true
|
|
plugins = ["pydantic.mypy"]
|
|
mypy_path = "."
|
|
explicit_package_bases = true
|
|
|
|
[[tool.mypy.overrides]]
|
|
module = ["src.models.*", "src.domain.*"]
|
|
strict = true
|
|
|
|
# Сторонние пакеты без типов (или недоступные вне банка)
|
|
[[tool.mypy.overrides]]
|
|
module = ["smbclient.*", "nkeys.*", "miniopy_async.*", "nats.*", "raisa_*", "pydbml.*"]
|
|
ignore_missing_imports = true
|