diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2021-03-02 18:54:18 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2021-03-02 18:54:18 +0000 |
commit | 29423d2117fd5329d83f005d2b0937bf2cd74de4 (patch) | |
tree | ec92b86b189c56bd5fce7f3d3d373965a13958d3 | |
parent | a62fb750442e6ea93c950d933adf8fc2713eb801 (diff) | |
parent | 056b2d4e36cefe108a764ad710996f8dfab2740f (diff) |
Merge "[COMMON] Add some python linters in tox.ini"
-rw-r--r-- | tox.ini | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -43,3 +43,14 @@ deps = commands = gitlint +[testenv:autopep8] +deps = autopep8 +commands = + autopep8 --max-line-length 120 --in-place --recursive kubernetes/ TOSCA/ docs/ + +[testenv:pylint] +deps = pylint +whitelist_externals = find +commands = + find kubernetes/ TOSCA/ docs/ -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 \{\} + + |