forked from gijzelaerr/python-snap7
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
36 lines (32 loc) · 804 Bytes
/
tox.ini
File metadata and controls
36 lines (32 loc) · 804 Bytes
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
[tox]
envlist =
mypy,
lint-ruff,
py310
py311
py312
py313
py314
isolated_build = true
[testenv]
extras = test
allowlist_externals = sudo
commands =
pytest -m "server or util or client or mainloop"
# sudo pytest -m partner
[testenv:mypy]
basepython = python3.13
extras = test
commands = mypy {toxinidir}/snap7 {toxinidir}/tests {toxinidir}/example
[testenv:lint-ruff]
basepython = python3.13
extras = test
commands =
ruff check {toxinidir}/snap7 {toxinidir}/tests {toxinidir}/example
ruff format --diff {toxinidir}/snap7 {toxinidir}/tests {toxinidir}/example
[testenv:ruff]
basepython = python3.13
extras = test
commands =
ruff format {toxinidir}/snap7 {toxinidir}/tests {toxinidir}/example
ruff check --fix {toxinidir}/snap7 {toxinidir}/tests {toxinidir}/example