Skip to content

Commit 3b008d1

Browse files
author
Jussi Kukkonen
committed
tox: Enable testing and linting ngclient
* Use the same rules as tuf/api * omit ngclient from coverage limits for now: #1309 Signed-off-by: Jussi Kukkonen <[email protected]>
1 parent 26b89b7 commit 3b008d1

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

tox.ini

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ changedir = tests
1616
commands =
1717
python --version
1818
python -m coverage run aggregate_tests.py
19-
python -m coverage report -m --fail-under 97
19+
python -m coverage report -m --fail-under 97 --omit "{toxinidir}/tuf/ngclient/*"
2020

2121
deps =
2222
-r{toxinidir}/requirements-test.txt
@@ -42,12 +42,12 @@ commands =
4242
commands =
4343
# Use different configs for new (tuf/api/*) and legacy code
4444
# TODO: configure black and isort args in pyproject.toml (see #1161)
45-
black --check --diff --line-length 80 {toxinidir}/tuf/api
46-
isort --check --diff --line-length 80 --profile black -p tuf {toxinidir}/tuf/api
47-
pylint {toxinidir}/tuf/api --rcfile={toxinidir}/tuf/api/pylintrc
45+
black --check --diff --line-length 80 {toxinidir}/tuf/api {toxinidir}/tuf/ngclient
46+
isort --check --diff --line-length 80 --profile black -p tuf {toxinidir}/tuf/api {toxinidir}/tuf/ngclient
47+
pylint {toxinidir}/tuf/api {toxinidir}/tuf/ngclient --rcfile={toxinidir}/tuf/api/pylintrc
4848

4949
# NOTE: Contrary to what the pylint docs suggest, ignoring full paths does
5050
# work, unfortunately each subdirectory has to be ignored explicitly.
51-
pylint {toxinidir}/tuf --ignore={toxinidir}/tuf/api,{toxinidir}/tuf/api/serialization
51+
pylint {toxinidir}/tuf --ignore={toxinidir}/tuf/api,{toxinidir}/tuf/api/serialization,{toxinidir}/tuf/ngclient,{toxinidir}/tuf/ngclient/_internal
5252

5353
bandit -r {toxinidir}/tuf

0 commit comments

Comments
 (0)