From 73110b490998042c83475911d524468ce0186e93 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Tue, 21 Jan 2020 16:01:50 +0100 Subject: [PATCH] tox: reduce deps used for pep8 env Linters are only used by the 'pep8' virtual environment, we do not need them in other test environment. Also 'pep8' only requires the three linters it used and the other modules are not needed. Move the pep8 dependencies to the pep8 testenv. Change-Id: I3a8436cbff9e2386cf0e0f5b0d1742283e647b56 --- test-requirements.txt | 4 ---- tox.ini | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test-requirements.txt b/test-requirements.txt index 642ba6df27..f2ff59c4cd 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -1,11 +1,7 @@ -flake8 -openapi-spec-validator - coverage>=3.6 fixtures>=0.3.14 stestr>=1.0.0 # Apache-2.0 testtools>=0.9.32 PyMySQL psycopg2-binary -mypy<0.650 beautifulsoup4 diff --git a/tox.ini b/tox.ini index ba752e8120..d7f03575ff 100644 --- a/tox.ini +++ b/tox.ini @@ -52,6 +52,10 @@ install_command = pip install {opts} {packages} # --ignore-missing-imports tells mypy to not try to follow imported modules # out of the current tree. As you might expect, we don't want to run static # type checking on the world - just on ourselves. +deps = + flake8 + mypy<0.650 + openapi-spec-validator commands = flake8 {posargs} mypy --ignore-missing-imports zuul