diff --git a/pyproject.toml b/pyproject.toml index 5df8a41..3c2be93 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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