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.
This commit is contained in:
mateuslatrova 2023-12-04 17:10:22 -03:00
parent f041de9bdb
commit d82bcc5269

View File

@ -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 =