-
Notifications
You must be signed in to change notification settings - Fork 22
/
tox.ini
65 lines (53 loc) · 1.62 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
57
58
59
60
61
62
63
64
65
[tox]
minversion = 4.0.0
envlist =
lint,
tests,
mypy,
apidocs
[testenv]
wheel = true
wheel_build_env = build
basepython =
lint: python3.9
mypy: python3.9
apidocs: python3.9
pindeps: python3.9
skip_install =
lint: true
mypy: true
apidocs: true
pindeps: true
deps =
lint: -rrequirements_lint.txt
tests: -rrequirements_tests.txt
mypy: -rrequirements_mypy.txt
apidocs: pydoctor
pindeps: pip-tools
setenv =
; Suppress pointless chatter in the output.
PIP_DISABLE_PIP_VERSION_CHECK=yes
tests: COVERAGE_PROCESS_START={toxinidir}/.coveragerc
; This must be an absolute path because the example tests
; run Python processes with alternative working directories.
tests: COVERAGE_FILE={toxinidir}/.coverage
commands =
python -V
lint: ruff check src/ tests/ {posargs}
apidocs: pydoctor -q --project-name incremental src/incremental
tests: coverage --version
tests: {envbindir}/trial --version
tests: coverage erase
tests: coverage run {envbindir}/trial incremental
tests: coverage run {envbindir}/trial tests/test_examples.py
tests: coverage combine
tests: coverage report
tests: coverage html
tests: coverage xml
mypy: mypy src
pindeps: pip-compile -o requirements_tests.txt requirements_tests.in {posargs}
pindeps: pip-compile -o requirements_mypy.txt requirements_mypy.in {posargs}
pindeps: pip-compile -o requirements_lint.txt requirements_lint.in {posargs}
[testenv:build]
# empty environment to build universal wheel once per tox invocation
# https://github.com/ionelmc/tox-wheel#build-configuration