From: Guillaume Lambert Date: Fri, 17 Apr 2020 09:28:58 +0000 (+0200) Subject: add an autopep8 tox profile for functional tests X-Git-Tag: 1.1.0~20 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=d5de49370be7b96d3f02900affcdd355e4261f89;p=transportpce.git add an autopep8 tox profile for functional tests - 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 Change-Id: I207fca299babe79c1196a54d09633414b8f86ece --- diff --git a/tox.ini b/tox.ini index efaf6da92..ec0f55ba0 100644 --- 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/