- [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]"
52 lines
1.3 KiB
TOML
52 lines
1.3 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=68.0"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "cashflow-forecast"
|
|
version = "0.1.0"
|
|
description = "Личная финансовая модель с прогнозом денежных потоков"
|
|
requires-python = ">=3.11"
|
|
dependencies = [
|
|
"openpyxl>=3.1",
|
|
"typer>=0.9",
|
|
"rich>=13.0",
|
|
"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"
|
|
|
|
[tool.setuptools.packages.find]
|
|
include = ["domain*", "application*", "infrastructure*"]
|
|
|
|
[tool.ruff]
|
|
target-version = "py311"
|
|
line-length = 120
|
|
|
|
[tool.ruff.lint]
|
|
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
|