Apply swh-py-template v0.2.0

This commit is contained in:
David Douard 2024-03-29 13:55:23 +01:00
parent fdeb086f77
commit e6a35c55b0
3 changed files with 14 additions and 8 deletions

View file

@ -7,20 +7,17 @@ envlist =
py3
[testenv]
usedevelop = true
extras =
testing
deps =
pytest-cov
commands =
pytest --doctest-modules \
--rootdir {envsitepackagesdir} \
--cov={envsitepackagesdir}/swh/lister \
--cov=swh/lister \
--cov-branch \
{envsitepackagesdir}/swh/lister \
swh/lister \
{posargs}
# --rootdir (with --import-mode from pytest.ini) are required to make tests
# that depends on the test file to be a proper submodule of the swh namespace
# after migration to PEP420 (implicit namespace).
[testenv:black]
skip_install = true