D12: pyproject.toml — dev-extra, настройки pytest и coverage

- [project.optional-dependencies] dev: pytest>=8.0, ruff==0.17.2, coverage>=7.0
  (ruff зафиксирован точной версией: вывод `ruff format` зависит от версии,
  иначе гейт `ruff format --check .` может «поплыть» при обновлении;
  coverage добавлен, чтобы работал [tool.coverage.run])
- [tool.pytest.ini_options]: addopts = "-ra --strict-markers" (testpaths сохранён)
- [tool.coverage.run]: branch=true, source=application/domain/infrastructure,
  omit тестов; [tool.coverage.report]: show_missing, skip_covered

Установка dev-окружения: pip install -e ".[dev]"
This commit is contained in:
oqyude committed 2026-10-25 05:17:32 +03:00
1 parent bf764723e4
commit 9562adb53f
1 file changed
+20
+20
View File
@@ -14,6 +14,16 @@ dependencies = [
"pydantic>=2.0",
]
[project.optional-dependencies]
# Инструменты разработки: `pip install -e ".[dev]"`.
# ruff зафиксирован точной версией — вывод `ruff format` зависит от версии,
# иначе CI-гейт `ruff format --check .` может «поплыть» после обновления.
dev = [
"pytest>=8.0",
"ruff==0.17.2",
"coverage>=7.0",
]
[project.scripts]
cf = "infrastructure.cli.app:app"
@@ -29,3 +39,13 @@ select = ["E", "F", "I", "N", "W"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra --strict-markers"
[tool.coverage.run]
branch = true
source = ["application", "domain", "infrastructure"]
omit = ["*/tests/*"]
[tool.coverage.report]
show_missing = true
skip_covered = true