-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
39 lines (35 loc) · 900 Bytes
/
tox.ini
File metadata and controls
39 lines (35 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[tox]
envlist = py39, py310, py311, py312, py313, pypy3
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.13: py313
pypy-3.10: pypy3
[testenv]
deps =
pytest>=7.0.0
pytest-cov>=4.0.0
pytest-timeout>=2.0.0
pytest-benchmark>=4.0.0
setenv =
PYTHONUNBUFFERED = 1
commands =
python -c "import sys; print(f'Python: {sys.version}')"
python -c "import pytest; print(f'pytest: {pytest.__version__}')"
python -m pytest --version
python -m pytest tests/test_pipreqs.py::TestPipreqs::test_get_pkg_names -vv -s --timeout=10
python -m pytest {posargs:tests/ -vv --tb=short --capture=no --timeout=300}
[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