feat: infrastructure — pyproject.toml, requirements-dev, conftest, pytest-cov

Ajoute pyproject.toml (pytest strict markers, coverage fail_under=55),
requirements-dev.txt (pytest-cov, pytest-xdist), et tests/conftest.py
avec fixtures partagées (dossier_minimal, dossier_complet, controle_cpam).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
dom
2026-02-20 10:06:11 +01:00
parent 1b680e9592
commit 5823eb6b53
3 changed files with 105 additions and 0 deletions

22
pyproject.toml Normal file
View File

@@ -0,0 +1,22 @@
[build-system]
requires = ["setuptools>=68.0"]
build-backend = "setuptools.backends._legacy:_Backend"
[project]
name = "t2a"
version = "2.0.0"
requires-python = ">=3.12"
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--strict-markers -x -q"
markers = ["integration: tests requiring Ollama"]
[tool.coverage.run]
source = ["src"]
omit = ["src/viewer/templates/*"]
[tool.coverage.report]
fail_under = 55
show_missing = true
exclude_lines = ["pragma: no cover", "if __name__", "except ImportError"]