This commit is contained in:
parent
c354157bd5
commit
202e07d5fe
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -7,5 +7,6 @@ __pycache__
|
|||
.mypy_cache
|
||||
.pytest_cache
|
||||
.pythonenv
|
||||
.reports
|
||||
.ruff_cache
|
||||
htmlcov
|
||||
|
|
|
@ -66,7 +66,8 @@ let
|
|||
cp -r ${src} ./src
|
||||
chmod +w -R ./src
|
||||
cd src
|
||||
${checkPython}/bin/python -m pytest ./tests
|
||||
${checkPython}/bin/python -m pytest ./tests \
|
||||
|| echo -e "generate coverage report py running:\n pytest; firefox .reports/html/index.html"
|
||||
touch $out
|
||||
'';
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ dynamic = ["version"]
|
|||
scripts = {clan = "clan_cli:main"}
|
||||
|
||||
[tool.pytest.ini_options]
|
||||
addopts = "--cov . --cov-report term --cov-fail-under=100 --no-cov-on-fail"
|
||||
addopts = "--cov . --cov-report term --cov-report html:.reports/html --cov-fail-under=100 --no-cov-on-fail"
|
||||
|
||||
[tool.mypy]
|
||||
python_version = "3.10"
|
||||
|
|
Loading…
Reference in New Issue
Block a user