2022-04-29 01:59:27 +03:00
|
|
|
[tox]
|
2022-05-10 01:37:11 +03:00
|
|
|
envlist = lint, py3{7,8,9}, pypy3, coverage-report
|
|
|
|
skip_missing_interpreters = true
|
2022-04-29 01:59:27 +03:00
|
|
|
|
|
|
|
[testenv]
|
|
|
|
deps =
|
2022-05-10 01:37:11 +03:00
|
|
|
-r requirements.txt
|
|
|
|
-r test_requirements.txt
|
|
|
|
; download the latest pip, setuptools and wheel when creating the venv
|
|
|
|
download = true
|
2022-04-29 01:59:27 +03:00
|
|
|
commands =
|
2022-05-10 01:37:11 +03:00
|
|
|
coverage run --parallel-mode -m pytest {posargs}
|
2022-04-29 01:59:27 +03:00
|
|
|
|
2022-05-10 01:37:11 +03:00
|
|
|
[testenv:lint]
|
|
|
|
skip_install = true
|
2022-04-29 01:59:27 +03:00
|
|
|
deps =
|
2022-05-10 01:37:11 +03:00
|
|
|
-r test_requirements.txt
|
|
|
|
commands =
|
|
|
|
black --check --diff .
|
|
|
|
isort --check-only --diff .
|
2022-04-29 01:59:27 +03:00
|
|
|
flake8
|
|
|
|
|
2022-05-10 01:37:11 +03:00
|
|
|
[testenv:coverage-report]
|
|
|
|
skip_install = true
|
|
|
|
commands =
|
|
|
|
coverage combine
|
|
|
|
coverage xml
|
|
|
|
coverage report
|
|
|
|
coverage html
|
2022-04-29 01:59:27 +03:00
|
|
|
|
|
|
|
[flake8]
|
2022-05-10 01:37:11 +03:00
|
|
|
select = C, E, F, W, B, B9
|
|
|
|
ignore = E203, E266, E501, W503
|
|
|
|
max-line-length = 88
|
|
|
|
exclude = .git, __pycache__, build, dist, .eggs, .tox, venv, venv*, .venv, .venv*
|
2022-04-29 01:59:27 +03:00
|
|
|
|
2022-05-10 01:37:11 +03:00
|
|
|
[isort]
|
|
|
|
profile = black
|