Add pytest-cov dependency

This commit is contained in:
Benoît Seignovert 2024-02-08 13:48:42 +01:00
parent 29739c792e
commit cd7f187d68
Signed by: Benoît Seignovert
GPG key ID: F5D8895227D18A0B
2 changed files with 105 additions and 1 deletions

View file

@ -24,6 +24,7 @@ jinja2 = "^3.1.3"
pre-commit = "^3.6.0"
pytest = "^8.0.0"
ruff = "^0.1.14"
pytest-cov = "^4.1.0"
[tool.ruff]
line-length = 100
@ -64,6 +65,24 @@ docstring-quotes = "double"
[tool.ruff.lint.pydocstyle]
convention = "numpy"
[tool.ruff.lint.per-file-ignores]
"tests/*.py" = [
"S101", # assert
"PLR2004", # magic-value-comparison
]
[tool.pytest.ini_options]
minversion = '6.0'
addopts = '--verbose --color=yes --cov=glicid_spawner --cov-report term-missing'
testpaths = ['tests']
[tool.coverage.report]
exclude_lines = [
'def __repr__',
'pragma: no cover',
'raise NotImplementedError',
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"