-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
56 lines (47 loc) · 1.29 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
[tox]
envlist = py{39,310,311,312}, coverage, docs, style
skip_missing_interpreters = true
[testenv]
setenv = COVERAGE_FILE={toxworkdir}/.coverage.{envname}
usedevelop = True
deps = -rtests/requirements.txt
commands = pytest {posargs:-vv --cov=src/ --cov-report=xml --junit-xml="{envdir}/junit.xml" --doctest-modules src/ tests/}
[testenv:coverage]
setenv = COVERAGE_FILE={toxworkdir}/.coverage
skip_install = True
deps = coverage
commands = coverage combine
coverage report -m
coverage xml
coverage html
[testenv:docs]
skip_install = True
deps = check-manifest
readme-renderer
commands = check-manifest
python setup.py check --strict --restructuredtext
[testenv:doctest]
usedevelop = True
deps = -rtests/requirements.txt
commands = pytest --doctest-modules {posargs:}
[testenv:style]
skip_install = True
deps = ruff
commands = ruff check
ruff format --diff
python "{toxinidir}/tests/extra-validations"
[testenv:reformat]
skip_install = True
deps = ruff
commands = ruff check --fix {posargs:}
ruff format {posargs:}
[check-manifest]
ignore = tests/**
docs/*
tox.ini
[coverage:xml]
output = .tox/test-reports/coverage.xml
[coverage:html]
directory = .tox/test-reports/htmlcov
[pytest]
cache_dir = .tox/pytest_cache