From d82bcc52697e42d0e8ed2ab4583256760ba98f63 Mon Sep 17 00:00:00 2001 From: mateuslatrova Date: Mon, 4 Dec 2023 17:10:22 -0300 Subject: [PATCH] fix flake8 environment in tox.ini file The way we configured the tox.ini file makes flake8 not to be run. Tox is only running python tests for the flake8 environment. With this PR, tox will run flake8 for the pipreqs and tests folders as desired. --- tox.ini | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tox.ini b/tox.ini index 2c547c5..b3de384 100644 --- a/tox.ini +++ b/tox.ini @@ -14,7 +14,12 @@ python = [testenv] setenv = PYTHONPATH = {toxinidir}:{toxinidir}/pipreqs -commands = python -m unittest discover +commands = + python -m unittest discover + +[testenv:flake8] +deps = flake8 +commands = flake8 pipreqs tests [flake8] exclude =