diff options
author | Chad Smith <chad.smith@canonical.com> | 2018-05-04 11:18:22 -0600 |
---|---|---|
committer | Chad Smith <chad.smith@canonical.com> | 2018-05-04 11:18:22 -0600 |
commit | 80dfb3b023a268d6d6204220665c2cf43eac66df (patch) | |
tree | 0eeb76fc6db15e3f96a7ceef2261c68a0dfc9909 /tox.ini | |
parent | aae494c39f4c6f625e7409ca262e657d085dd5d1 (diff) | |
download | vyos-cloud-init-80dfb3b023a268d6d6204220665c2cf43eac66df.tar.gz vyos-cloud-init-80dfb3b023a268d6d6204220665c2cf43eac66df.zip |
pycodestyle: Fix deprecated string literals, move away from flake8.
Fix remaining pycodesytle warnings related to invalid string literals
introduced in more recent pycodeflakes versions
https://bugs.python.org/issue27364 .
Also stop using flake8 in tox as it is incompatible with newer versions of
pyflakes. Instead we now add tox environments for pycodestyle and pyflakes
individually.
Set the versions in both pycodestyle and pyflakes to the currently
available versions.
Diffstat (limited to 'tox.ini')
-rw-r--r-- | tox.ini | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -1,5 +1,5 @@ [tox] -envlist = py27, py3, flake8, xenial, pylint +envlist = py27, py3, xenial, pycodestyle, pyflakes, pylint recreate = True [testenv] @@ -7,14 +7,11 @@ commands = python -m nose {posargs:tests/unittests cloudinit} setenv = LC_ALL = en_US.utf-8 -[testenv:flake8] +[testenv:pycodestyle] basepython = python3 deps = - pycodestyle==2.3.1 - pyflakes==1.5.0 - flake8==3.3.0 - hacking==0.13.0 -commands = {envpython} -m flake8 {posargs:cloudinit/ tests/ tools/} + pycodestyle==2.4.0 +commands = {envpython} -m pycodestyle {posargs:cloudinit/ tests/ tools/} # https://github.com/gabrielfalcao/HTTPretty/issues/223 setenv = @@ -118,6 +115,11 @@ deps = commands = {envpython} -m pycodestyle {posargs:cloudinit/ tests/ tools/} deps = pycodestyle +[testenv:pyflakes] +commands = {envpython} -m pyflakes {posargs:cloudinit/ tests/ tools/} +deps = + pyflakes==1.6.0 + [testenv:tip-pyflakes] commands = {envpython} -m pyflakes {posargs:cloudinit/ tests/ tools/} deps = pyflakes |