X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=tox.ini;h=8e9528a6526fe30e7f714297d72d9c611fe81ac9;hb=20f7e2f0391dd4cb85fc8a69b9c0fa12d12648fa;hp=0751d9b1dd82dc207f89ed4738127273a7708896;hpb=fe521e625d056c03d8e56ae14f45792c10c303b1;p=transportpce.git diff --git a/tox.ini b/tox.ini index 0751d9b1d..8e9528a65 100644 --- a/tox.ini +++ b/tox.ini @@ -227,7 +227,7 @@ basepython = python3 deps = pylint whitelist_externals = find commands = - find transportpce_tests/ -name *.py -exec pylint --max-line-length=120 --disable=missing-docstring --method-rgx="(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$" --variable-rgx="[a-zA-Z_][a-zA-Z0-9_]{1,30}$" --reports=y --score=y --output-format=colorized \{\} + + find transportpce_tests/ -name *.py -exec pylint --max-line-length=120 --disable=missing-docstring --module-rgx="([a-z0-9_]+$)|([0-9.]{1,30}$)" --method-rgx="(([a-z_][a-zA-Z0-9_]{2,})|(_[a-z0-9_]*)|(__[a-zA-Z][a-zA-Z0-9_]+__))$" --variable-rgx="[a-zA-Z_][a-zA-Z0-9_]{1,30}$" --reports=y --score=y --output-format=colorized \{\} + [testenv:pyang] basepython = python3 @@ -260,6 +260,12 @@ commands = pre-commit uninstall pre-commit uninstall --hook-type commit-msg +[testenv:pre-commit-autoupdate] +basepython = python3 +deps = pre-commit +commands = + pre-commit autoupdate + [testenv:pre-commit] basepython = python3 deps = pre-commit