diff options
author | 2020-03-16 09:43:26 +0100 | |
---|---|---|
committer | 2020-03-16 10:54:27 +0100 | |
commit | 005dc349ac340cb236e8845e39ff840e017ffa75 (patch) | |
tree | 84c3da4a12db93ad18d6f6e07ac0a4af3be8c49e | |
parent | 74b31a2b17e18740dafcf883c2d2ddef37a6504c (diff) |
Run pep8 via tox
It adds flake8 as test requirement.
It may be completed by a second change fixing all the errors.
It selects python3 as interpreter as lf-build2 is unmaintained and
obsolete. It may be verified vs python3.5 which is false.
https://build.opnfv.org/ci/view/cirv/job/cirv-run-tox-latest/1/console
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: I45e2537b7a578a92c99a1da36db1c5fd6067be74
-rw-r--r-- | test-requirements.txt | 1 | ||||
-rw-r--r-- | tox.ini | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/test-requirements.txt b/test-requirements.txt new file mode 100644 index 0000000..c3954be --- /dev/null +++ b/test-requirements.txt @@ -0,0 +1 @@ +flake8 # MIT @@ -0,0 +1,12 @@ +[tox] +envlist = pep8 +skipsdist = true + +[testenv] +deps = + -r{toxinidir}/requirements.txt + -r{toxinidir}/test-requirements.txt + +[testenv:pep8] +basepython = python3 +commands = flake8 |