3ee670f0c8
and remove 'H233 Python 3.x incompatible use of print operator' pep8/flake8 ignore case in cgts-client and sysinv tox setup enable flake8 hacking and ignore some case and fix it later for those ignore case. Story: 2003433 Task: 24629 Change-Id: I0dfc4c17681dd9b0042a4277b7956d270eb73495 Signed-off-by: Sun Austin <austin.sun@intel.com>
38 lines
1.2 KiB
INI
38 lines
1.2 KiB
INI
# Tox (http://tox.testrun.org/) is a tool for running tests
|
|
# in multiple virtualenvs. This configuration file will run the
|
|
# test suite on all supported python versions. To use it, "pip install tox"
|
|
# and then run "tox" from this directory.
|
|
|
|
[tox]
|
|
envlist = flake8
|
|
# Tox does not work if the path to the workdir is too long, so move it to /tmp
|
|
toxworkdir = /tmp/{env:USER}_ccutiltox
|
|
wrsdir = {toxinidir}/../../../../../../../../..
|
|
|
|
[testenv]
|
|
whitelist_externals = find
|
|
install_command = pip install --no-cache-dir {opts} {packages}
|
|
|
|
[testenv:venv]
|
|
commands = {posargs}
|
|
|
|
[testenv:flake8]
|
|
basepython = python2.7
|
|
deps = hacking
|
|
flake8<3.6.0
|
|
commands = flake8 {posargs}
|
|
|
|
# H series are hacking
|
|
# H102: Apache 2.0 license header not found
|
|
# H104: File contains nothing but comments
|
|
# H301: one import per line
|
|
# H306: imports not in alphabetical order
|
|
# H401: docstring should not start with a space
|
|
# H403: multi line docstrings should end on a new line
|
|
# H404: multi line docstring should start without a leading new line
|
|
# H405: multi line docstring summary not separated with an empty line
|
|
# W503 line break before binary operator
|
|
[flake8]
|
|
ignore = H102,H104,H301,H306,H401,H403,H404,H405,
|
|
W503
|