Add pytest-cov dependency
This commit is contained in:
parent
29739c792e
commit
cd7f187d68
2 changed files with 105 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue