arm-core/api/pyproject.toml
Andrey Epifancev bb20d323d0 chore: инструменты шаблона — pyproject (ruff, mypy), requirements-dev, Makefile
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-03 18:01:18 +04:00

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