From f91ce395e58e1e4da73dbff8e8cac7829bf9ae3a Mon Sep 17 00:00:00 2001 From: Joshua Lock Date: Thu, 15 Oct 2020 11:18:12 +0100 Subject: [PATCH] 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 --- tox.ini | 3 ++- tuf/api/pylintrc | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 tuf/api/pylintrc diff --git a/tox.ini b/tox.ini index ccdac9fb..05c5feac 100644 --- a/tox.ini +++ b/tox.ini @@ -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 diff --git a/tuf/api/pylintrc b/tuf/api/pylintrc new file mode 100644 index 00000000..a75347f4 --- /dev/null +++ b/tuf/api/pylintrc @@ -0,0 +1,6 @@ +[MESSAGE_CONTROL] +disable=fixme + +[FORMAT] +indent-string=" " +max-line-length=79