forked from kbytesys/pynagsystemd
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathtox.ini
56 lines (49 loc) · 1010 Bytes
/
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
[tox]
envlist = py{39,310,311,312,313}, format, readme, docs, lint, typecheck
isolated_build = True
[testenv]
# Do not use basepython here. This way the existing Python version can
# be selected automatically.
# basepython = python3.10
deps = pytest
commands = pytest
[testenv:format]
deps = ruff
commands =
; sort imports
ruff check --select I --fix .
ruff format
[testenv:readme]
deps =
readme-patcher
commands =
readme-patcher
[testenv:docs]
deps =
pgi # PGI - Pure Python GObject Introspection Bindings API compatible with PyGObject.
Sphinx
sphinx-rtd-theme
sphinx-autodoc-typehints
readme-patcher
commands =
sphinx-build -W -q docs docs/_build
[testenv:lint]
deps =
ruff
commands =
ruff check
[testenv:typecheck]
deps =
mypy
pytest
nagiosplugin-stubs
pygobject-stubs
commands =
mypy check_systemd.py tests
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312, format, docs, lint
3.13: py313