add an autopep8 tox profile for functional tests 89/89089/2
authorGuillaume Lambert <guillaume.lambert@orange.com>
Fri, 17 Apr 2020 09:28:58 +0000 (11:28 +0200)
committerGuillaume Lambert <guillaume.lambert@orange.com>
Fri, 17 Apr 2020 12:17:31 +0000 (14:17 +0200)
- declare the autopep8 profile in tox.ini testenv to autoformat
  functional tests python scripts
- set maximum line length check to 120 characters (ODL standard)
- set recursive and in-place options so that the whole tests directory
  is automatically autoformatted

Signed-off-by: Guillaume Lambert <guillaume.lambert@orange.com>
Change-Id: I207fca299babe79c1196a54d09633414b8f86ece

tox.ini

diff --git a/tox.ini b/tox.ini
index efaf6da929e6c327a073d48a6e7c8a9ff260109b..ec0f55ba0c4ce6c242f7ec2f227bfd18111f654e 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -63,3 +63,8 @@ basepython = python3
 deps = -rdocs/requirements.txt
 commands = sphinx-build -W -b linkcheck -d {envtmpdir}/doctrees ../docs/ {toxinidir}/docs/_build/linkcheck
 
+[testenv:autopep8]
+basepython = python3
+deps = autopep8
+commands =
+    autopep8 --max-line-length 120 --in-place --recursive transportpce_tests/