Repository navigation
Expand file tree
/
Copy pathtox.ini
More file actions
202 lines (183 loc) · 3.96 KB
/
Copy pathtox.ini
File metadata and controls
202 lines (183 loc) · 3.96 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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
[tox]
ignore_basepython_conflict = True
skip_missing_interpreters = True
envlist =
py{310,311,312,313,314}
ruff_format
docformatter
pydocstyle
mypy
build_fonts
[testenv]
basepython = python3.13
setenv =
TERM = xterm-256color
passenv =
PYTHONASYNCIODEBUG
deps =
pexpect
pytest
pytest-asyncio>=0.21
pytest-cov
pytest-timeout
pytest-xdist
trustme
usedevelop = True
commands =
pytest {posargs:--strict-markers --verbose --durations=10} telix/tests
[testenv:ruff_check]
deps = ruff
commands =
ruff check telix/ --fix --unsafe-fixes
[testenv:ruff_format]
deps = ruff
commands =
ruff format telix/
[testenv:docformatter]
basepython = python3.13
deps =
docformatter>=1.7.7,<1.7.8
untokenize
commands =
docformatter \
--in-place \
--recursive \
--pre-summary-newline \
--wrap-summaries=120 \
--wrap-descriptions=120 \
{toxinidir}/telix/
[testenv:docformatter_check]
basepython = python3.13
deps =
docformatter>=1.7.7,<1.7.8
untokenize
commands =
docformatter \
--check \
--diff \
--recursive \
--pre-summary-newline \
--wrap-summaries=120 \
--wrap-descriptions=120 \
{toxinidir}/telix/
[testenv:mypy]
deps =
mypy
commands =
mypy telix
[testenv:pydocstyle]
deps =
pydocstyle
restructuredtext_lint
doc8
pygments
commands =
pydocstyle --source --explain {toxinidir}/telix
rst-lint README.rst
doc8 --ignore-path docs/_build --ignore D000 docs
[testenv:codespell]
deps =
codespell
commands =
codespell --skip="*.pyc,*.log,*.log.*,*.debug,typescript*,htmlcov*,_build,build,*.egg-info,.tox,.git,logs,debug.txt,trace.log,*telix/fonts/deps*" \
--ignore-words-list="wont,nams,flushin,thirdparty,lient,caf,alo,implementor,untils,hel,vor,ofo,drastical,dum,whats,fo" \
--uri-ignore-words-list "*" \
--summary --count
[testenv:format]
usedevelop = True
deps =
{[testenv:ruff_format]deps}
{[testenv:docformatter]deps}
commands =
{[testenv:ruff_format]commands}
{[testenv:docformatter]commands}
python {toxinidir}/tools/update-readme.py
[testenv:lint]
deps =
{[testenv:ruff_check]deps}
{[testenv:pydocstyle]deps}
{[testenv:codespell]deps}
commands =
{[testenv:ruff_check]commands}
{[testenv:pydocstyle]commands}
{[testenv:codespell]commands}
python {toxinidir}/tools/validate_css.py
[testenv:build_fonts]
basepython = python3.14
usedevelop = True
deps =
requests
urllib3
fonttools
monobit
numpy
blessed
commands =
python {toxinidir}/tools/build_fonts.py
[testenv:covhtml]
basepython = python3.13
skip_install = True
deps =
coverage
commands =
coverage combine
coverage html
coverage report --skip-covered
[testenv:docs]
deps =
-r{toxinidir}/docs/requirements.txt
usedevelop = True
commands =
python {toxinidir}/tools/update-readme.py
sphinx-build -W -b html {toxinidir}/docs {toxinidir}/docs/_build/html
[coverage:run]
branch = True
parallel = True
source = telix
omit = telix/tests/*
relative_files = True
[coverage:report]
precision = 1
exclude_lines =
pragma: no cover
omit = telix/tests/*
[coverage:paths]
source = telix/
[doc8]
max-line-length = 120
[pydocstyle]
ignore =
D101,
D102,
D103,
D105,
D107,
D203,
D204,
D212,
D401
[pytest]
norecursedirs = .git .tox build
asyncio_mode = auto
log_level = debug
log_format = %(levelname)8s %(filename)s:%(lineno)s %(message)s
addopts =
--strict-markers
--verbose
--capture=no
-n auto
-p no:benchmark
--color=yes
--cov
--cov-append
--cov-report=xml
--disable-pytest-warnings
--ignore=setup.py
--ignore=.tox
--durations=10
--timeout=15
--junit-xml=.tox/results.{envname}.xml
faulthandler_timeout = 30
filterwarnings =
ignore:coroutine 'AsyncMockMixin._execute_mock_call' was never awaited:RuntimeWarning
junit_family = xunit1