From 549cdc5ceba77417a8a6bdfab6878c64998bfd04 Mon Sep 17 00:00:00 2001 From: Martin Kopec Date: Tue, 20 Nov 2018 09:11:39 +0000 Subject: [PATCH] Constraint flake8 version A month ago a flake8 3.6.0 version was released and it's been causing pep8 check gate fail since then. This patch * removes flake8 dependency from tox.ini file, because otherwise version defined in test-requirements.txt is not taken into account. * flake8==2.0 version is too old so the version is bumped, however, it's limited for versions < 3.6.0 * pyflakes version needs to be bumped too otherwise it doesn't work with newer flake8 versions Change-Id: I470d1e8ae69aff87dcc9bf9dfa988370efb2817d --- test-requirements.txt | 4 ++-- tox.ini | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index 8f630cf..de04df0 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,6 +1,6 @@ pep8==1.4.5 -pyflakes>=0.7.2,<0.7.4 -flake8==2.0 +pyflakes>=0.7.2,<0.8.1 +flake8<3.6.0 docutils>=0.11 # OSI-Approved Open Source, Public Domain stestr>=1.1.0 # Apache-2.0 testtools>=0.9.34 diff --git a/tox.ini b/tox.ini index e191ce6..8fcb096 100644 --- a/tox.ini +++ b/tox.ini @@ -22,7 +22,6 @@ whitelist_externals = distribute = false [testenv:pep8] -deps = flake8 commands = flake8 distribute = false