-
Notifications
You must be signed in to change notification settings - Fork 64
/
tox.ini
32 lines (27 loc) · 977 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
[tox]
envlist = py37,py38,py39,py310,py311,py312,pypy3,coverage-report,packaging
[testenv]
changedir = .tox
deps = -rrequirements.txt
commands = coverage run --parallel --rcfile {toxinidir}/.tox-coveragerc -m pytest -vv --doctest-modules {envsitepackagesdir}/glom {posargs}
[testenv:coverage-report]
changedir = .tox
deps = coverage
commands = coverage combine --rcfile {toxinidir}/.tox-coveragerc
coverage xml --rcfile {toxinidir}/.tox-coveragerc
coverage report --rcfile {toxinidir}/.tox-coveragerc
coverage html --rcfile {toxinidir}/.tox-coveragerc -d {toxinidir}/htmlcov
[testenv:packaging]
changedir = {toxinidir}
deps =
check-manifest==0.50
commands =
check-manifest
[testenv:syntax-upgrade]
changedir = {toxinidir}
deps =
flynt
pyupgrade
commands =
flynt ./glom
python -c "import glob; import subprocess; [subprocess.run(['pyupgrade', '--py37-plus', f]) for f in glob.glob('./glom/**/*.py', recursive=True)]"