From d5de49370be7b96d3f02900affcdd355e4261f89 Mon Sep 17 00:00:00 2001 From: Guillaume Lambert Date: Fri, 17 Apr 2020 11:28:58 +0200 Subject: [PATCH] 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 --- tox.ini | 5 +++++ 1 file changed, 5 insertions(+) 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/ -- 2.36.6