X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=tox.ini;h=4617e73e54bdc4375a00caad550ccbaa5933da66;hp=a09a90f72b0535efdd61746068c81cedf944cc1f;hb=870829e027772cdad6b69794bce63f0458121f1a;hpb=83070f6f4a9a682f6bbe94304dbf0830529ff475 diff --git a/tox.ini b/tox.ini index a09a90f72b..4617e73e54 100644 --- a/tox.ini +++ b/tox.ini @@ -25,7 +25,9 @@ # will execute only checks defined in "pylint" tox environment. [tox] -envlist = copyright, new_line_length, line_length, autogen, pylint +envlist = new_line_length, line_length, autogen, pylint, tc_naming, tc_coverage, + doc_verify + # The following is needed as tox requires setup.py by default. skipsdist = true # Just a shorthand to avoid long lines. @@ -34,8 +36,9 @@ checker_dir = ./resources/libraries/bash/entry/check # TODO: Tox prints various warnings. Figure them out and fix them. [testenv:pylint] +basepython = python3 deps = - pylint==1.5.4 + pylint==2.4.3 -r ./requirements.txt whitelist_externals = /bin/bash setenv = PYTHONPATH = {toxinidir} @@ -56,15 +59,25 @@ whitelist_externals = /bin/bash # the checker has to remain non-voting. commands = bash -c "bash {[tox]checker_dir}/new_line.sh || true" -[testenv:copyright] -whitelist_externals = /bin/bash -commands = bash {[tox]checker_dir}/copyright.sh - [testenv:autogen] whitelist_externals = /bin/bash setenv = PYTHONPATH = {toxinidir} commands = bash {[tox]checker_dir}/autogen.sh +[testenv:tc_naming] +whitelist_externals = /bin/bash +commands = bash {[tox]checker_dir}/tc_naming.sh + +[testenv:tc_coverage] +whitelist_externals = /bin/bash +# Coverage is not needed to be voting. +commands = bash -c "bash {[tox]checker_dir}/tc_coverage.sh || true" + +[testenv:doc_verify] +# Fix all documentaion error before enabling voting. +whitelist_externals = /bin/bash +commands = bash -c "bash {[tox]checker_dir}/doc_verify.sh || true" + # TODO: Migrate current docs check here. # TODO: Create voting "pylint violations should not increase" checker. # TODO: Create voting checker to reject suites with Force Tags of other suite.