2012-06-06 08:33:18 +04:00
|
|
|
[tox]
|
2019-01-13 19:55:06 +03:00
|
|
|
envlist =
|
|
|
|
lint
|
2022-12-13 19:04:30 +03:00
|
|
|
py{py3, 311, 310, 39, 38, 37}
|
2019-01-13 19:55:06 +03:00
|
|
|
minversion = 1.9
|
2012-06-06 08:33:18 +04:00
|
|
|
|
|
|
|
[testenv]
|
2022-12-13 19:04:30 +03:00
|
|
|
deps =
|
|
|
|
cffi
|
|
|
|
numpy
|
2022-02-19 16:39:37 +03:00
|
|
|
extras =
|
|
|
|
tests
|
2012-06-06 08:33:18 +04:00
|
|
|
commands =
|
2021-12-24 03:12:51 +03:00
|
|
|
make clean
|
|
|
|
{envpython} -m pip install --global-option="build_ext" --global-option="--inplace" .
|
2013-03-07 18:06:51 +04:00
|
|
|
{envpython} selftest.py
|
2020-01-27 04:30:27 +03:00
|
|
|
{envpython} -m pytest -W always {posargs}
|
2022-12-13 19:06:58 +03:00
|
|
|
allowlist_externals = make
|
2019-01-13 19:55:06 +03:00
|
|
|
|
|
|
|
[testenv:lint]
|
2022-12-13 19:04:30 +03:00
|
|
|
passenv =
|
|
|
|
PRE_COMMIT_COLOR
|
|
|
|
skip_install = true
|
2019-01-13 19:55:06 +03:00
|
|
|
deps =
|
2022-12-13 19:04:30 +03:00
|
|
|
check-manifest
|
2020-02-05 18:59:04 +03:00
|
|
|
pre-commit
|
2022-12-13 19:04:30 +03:00
|
|
|
commands =
|
|
|
|
pre-commit run --all-files --show-diff-on-failure
|
2019-01-13 19:55:06 +03:00
|
|
|
check-manifest
|