-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathtox.ini
More file actions
96 lines (90 loc) · 1.64 KB
/
Copy pathtox.ini
File metadata and controls
96 lines (90 loc) · 1.64 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
[tox]
envlist = py3{10,11,12,13,14},black,coverage,docformatter,docs,pylint,wheel,yamllint
[testenv]
allowlist_externals = ./run_tests.py
pip_pre = True
passenv =
CFLAGS
CPPFLAGS
LDFLAGS
setenv =
PYTHONPATH = {toxinidir}
deps =
coverage: coverage
wheel:
build
setuptools >= 65
wheel
commands =
py3{10,11,12,13,14}: ./run_tests.py
coverage: coverage erase
coverage: coverage run --source=dfwinreg --omit="*_test*,*__init__*,*test_lib*" run_tests.py
coverage: coverage xml
wheel: python -m build --no-isolation --wheel
[testenv:black]
skipsdist = True
pip_pre = True
passenv =
CFLAGS
CPPFLAGS
LDFLAGS
setenv =
PYTHONPATH = {toxinidir}
deps =
black
setuptools >= 65
commands =
black --version
black .
[testenv:docformatter]
skipsdist = True
pip_pre = True
passenv =
CFLAGS
CPPFLAGS
LDFLAGS
setenv =
PYTHONPATH = {toxinidir}
deps =
docformatter
setuptools >= 65
commands =
docformatter --version
docformatter --in-place --recursive dfwinreg tests
[testenv:docs]
usedevelop = True
deps =
-rdocs/requirements.txt
commands =
sphinx-build -b html -d build/doctrees docs dist/docs
sphinx-build -b linkcheck docs dist/docs
[testenv:pylint]
skipsdist = True
pip_pre = True
passenv =
CFLAGS
CPPFLAGS
LDFLAGS
setenv =
PYTHONPATH = {toxinidir}
deps =
pylint >= 4.0.0, < 4.1.0
setuptools >= 65
commands =
pylint --version
pylint --rcfile=.pylintrc dfwinreg tests
[testenv:yamllint]
skipsdist = True
pip_pre = True
passenv =
CFLAGS
CPPFLAGS
LDFLAGS
setenv =
PYTHONPATH = {toxinidir}
deps =
setuptools >= 65
yamllint >= 1.26.0
commands =
yamllint -v
yamllint -c .yamllint.yaml dfwinreg