mirror of
https://github.com/bndr/pipreqs.git
synced 2025-06-04 18:45:22 +00:00

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.
31 lines
551 B
INI
31 lines
551 B
INI
[tox]
|
|
isolated_build = true
|
|
envlist = py38, py39, py310, py311, py312, pypy3, flake8
|
|
|
|
[gh-actions]
|
|
python =
|
|
3.8: py38
|
|
3.9: py39
|
|
3.10: py310
|
|
3.11: py311
|
|
3.12: py312
|
|
pypy-3.9-7.3.12: pypy3
|
|
|
|
[testenv]
|
|
setenv =
|
|
PYTHONPATH = {toxinidir}:{toxinidir}/pipreqs
|
|
commands =
|
|
python -m unittest discover
|
|
|
|
[testenv:flake8]
|
|
deps = flake8
|
|
commands = flake8 pipreqs tests
|
|
|
|
[flake8]
|
|
exclude =
|
|
tests/_data/
|
|
tests/_data_clean/
|
|
tests/_data_duplicated_deps/
|
|
tests/_data_ignore/
|
|
tests/_invalid_data/
|
|
max-line-length = 120 |