Skip to content

Commit fe83767

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: theupdateframework#1309 Signed-off-by: Jussi Kukkonen <[email protected]>
1 parent 116f820 commit fe83767

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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
@@ -43,13 +43,13 @@ changedir = {toxinidir}
4343
commands =
4444
# Use different configs for new (tuf/api/*) and legacy code
4545
# TODO: configure black and isort args in pyproject.toml (see #1161)
46-
black --check --diff --line-length 80 tuf/api
47-
isort --check --diff --line-length 80 --profile black -p tuf tuf/api
48-
pylint -j 0 tuf/api --rcfile=tuf/api/pylintrc
46+
black --check --diff --line-length 80 tuf/api tuf/ngclient
47+
isort --check --diff --line-length 80 --profile black -p tuf tuf/api tuf/ngclient
48+
pylint -j 0 tuf/api tuf/ngclient --rcfile=tuf/api/pylintrc
4949

5050
# NOTE: Contrary to what the pylint docs suggest, ignoring full paths does
5151
# work, unfortunately each subdirectory has to be ignored explicitly.
52-
pylint -j 0 tuf --ignore=tuf/api,tuf/api/serialization
52+
pylint -j 0 tuf --ignore=tuf/api,tuf/api/serialization,tuf/ngclient,tuf/ngclient/_internal
5353

5454
mypy
5555

0 commit comments

Comments
 (0)