From de68691438f5e65fa54b92b2adf3df7a09e54c5a 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 5da6ede..13f090e 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 =