Add minimal pylintrc for new code in tuf/api

Add a minimal pylintrc to lint for new code being developed in tuf/api and
update the tox configuration to ignore tuf/api with the default pylintrc
and run an extra invocation of pylint for just the modules in tuf/api.

Signed-off-by: Joshua Lock <jlock@vmware.com>
This commit is contained in:
Joshua Lock 2020-10-15 11:18:12 +01:00
parent 05b1609786
commit f91ce395e5
2 changed files with 8 additions and 1 deletions

View file

@ -14,7 +14,8 @@ skipsdist = true
changedir = tests
commands =
pylint {toxinidir}/tuf
pylint {toxinidir}/tuf --ignore={toxinidir}/tuf/api
pylint {toxinidir}/tuf/api --rcfile={toxinidir}/tuf/api/pylintrc
bandit -r {toxinidir}/tuf
coverage run aggregate_tests.py
coverage report -m --fail-under 97

6
tuf/api/pylintrc Normal file
View file

@ -0,0 +1,6 @@
[MESSAGE_CONTROL]
disable=fixme
[FORMAT]
indent-string=" "
max-line-length=79