-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
33 lines (29 loc) · 867 Bytes
/
tox.ini
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
[tox]
envlist = py39, py10, py311, py312, py313, pypi, linters
skipsdist = True
# Mapping required by tox-gh-actions, only used in CI
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
3.13: py313
[testenv]
deps =
-r{toxinidir}/requirements-dev.txt
pytest
pytest-cov
commands =
pytest --show-capture=no --cov --cov-fail-under=50
[testenv:pypi]
allowlist_externals = /bin/bash
commands =
# Check that the long description is ready to be published on PyPI without errors
/bin/bash -c 'ERROR=$(\{ python setup.py --long-description | rst2html >/dev/null;\} 2>&1) && if [[ ! -z $ERROR ]];'\
'then echo "README.rst is incompatible with PyPI reST renderer." && echo $ERROR && exit 1; fi'
[testenv:linters]
basepython = python3
skip_install = true
deps = pre-commit
commands = pre-commit run --all-files