-
Notifications
You must be signed in to change notification settings - Fork 31
/
Copy pathtox.ini
98 lines (85 loc) · 1.63 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
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
97
98
[tox]
envlist =
py39
py310
py311
py312
lint
type-check
min
full
plugins
doc
dists
skip_missing_interpreters = true
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312, type-check, lint, plugins, min
[flake8]
exclude = .git,.tox,dist,*egg,setup.py
[testenv]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/tests/requirements.txt
lint: ruff
commands =
pytest
setenv =
PYTHONPATH = {toxinidir}/src
[testenv:lint]
deps =
-r {toxinidir}/tests/requirements.d/lint.txt
commands =
flake8 --doctests src tests
- pylint --init-hook 'import os,sys; sys.path.insert(0, os.curdir)' src
ruff check src
[testenv:type-check]
deps =
-r {toxinidir}/tests/requirements.d/type-check.txt
commands =
mypy src
[testenv:full]
deps =
{[testenv]deps}
-r{toxinidir}/tests/requirements.d/full.txt
[testenv:plugins]
deps =
{[testenv]deps}
-r{toxinidir}/tests/requirements.d/plugins.txt
[testenv:doc]
allowlist_externals =
make
deps =
{[testenv]deps}
-r{toxinidir}/docs/requirements.txt
commands =
pydocstyle src
make -C {toxinidir}/docs html
whitelist_externals =
/usr/bin/make
[testenv:min]
deps =
{[testenv]deps}
commands =
pytest
[testenv:sdist]
commands =
python setup.py sdist
[testenv:dists]
passenv =
_SNAPSHOT_BUILD
deps =
wheel
commands =
{[testenv:sdist]commands}
python setup.py bdist_wheel
[testenv:srpm]
passenv =
_SNAPSHOT_BUILD
commands =
{[testenv:sdist]commands}
python setup.py bdist_rpm --source-only --dist-dir {toxinidir}/dist
# vim:sw=4:ts=4:et: