-
Notifications
You must be signed in to change notification settings - Fork 40
Expand file tree
/
Copy pathtox.ini
More file actions
139 lines (123 loc) · 2.48 KB
/
tox.ini
File metadata and controls
139 lines (123 loc) · 2.48 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
[tox]
envlist =
py39
py310
py311
py312
py313
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
3.13: py313, type-check, lint, plugins, min
[flake8]
exclude = .git,.tox,dist,*egg,setup.py
[testenv]
deps =
-r{toxinidir}/requirements.txt
-r{toxinidir}/tests/requirements.txt
-r {toxinidir}/tests/requirements.d/base.txt
commands =
pytest
setenv =
PYTHONPATH = {toxinidir}/src
[testenv:lint]
deps =
-r {toxinidir}/tests/requirements.d/lint.txt
commands =
ruff check src --output-format pylint
ruff check src --statistics
[testenv:lint-legacy]
deps =
{[testenv:lint]deps}
-r {toxinidir}/tests/requirements.d/lint-legacy.txt
commands =
{[testenv:lint]commands}
flake8 --doctests src tests
- pylint --init-hook 'import os,sys; sys.path.insert(0, os.curdir)' 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]
deps =
setuptools
commands =
python setup.py sdist
[testenv:dists]
deps =
{[testenv:sdist]deps}
wheel
twine
commands =
{[testenv:sdist]commands}
python setup.py bdist_wheel
twine check dist/*-*tar.gz
# Depends: ~/.pypirc
[testenv:upload]
deps =
{[testenv:dists]deps}
twine
commands =
{[testenv:dists]commands}
twine upload --repository anyconfig dist/*
[testenv:srpm]
allowlist_externals =
./pkg/buildsrpm.sh
deps =
{[testenv:sdist]deps}
commands =
{[testenv:sdist]commands}
./pkg/buildsrpm.sh
[testenv:upload-copr]
allowlist_externals =
{[testenv:srpm]allowlist_externals}
./pkg/copr-build.sh
deps =
{[testenv:srpm]deps}
commands =
{[testenv:srpm]commands}
./pkg/copr-build.sh
[testenv:rpms]
allowlist_externals =
{[testenv:upload-copr]allowlist_externals}
deps =
{[testenv:upload-copr]deps}
commands =
{[testenv:srpm]commands}
./pkg/copr-build.sh check