-
Notifications
You must be signed in to change notification settings - Fork 8
/
tox.ini
61 lines (53 loc) · 943 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
57
58
59
60
61
[tox]
requires =
tox>=4.2
no_package = true
[testenv]
deps =
.[testing]
commands =
pytest {posargs}
[testenv:check]
deps =
.[testing]
mypy
commands =
mypy {[base]lint_files} {posargs}
[testenv:coverage]
deps =
.[testing]
pytest-cov
commands =
pytest --cov prometheus_aioexporter/ {posargs}
[testenv:docs]
deps =
-r docs/requirements.txt
.
commands =
sphinx-build -b html docs html {posargs}
[testenv:format]
deps =
pyproject-fmt
ruff
tox-ini-fmt
commands =
ruff format {[base]lint_files}
ruff check --fix {[base]lint_files}
- pyproject-fmt pyproject.toml
- tox-ini-fmt tox.ini
[testenv:lint]
deps =
pyproject-fmt
ruff
commands =
ruff check {[base]lint_files}
pyproject-fmt --check pyproject.toml
[testenv:sample]
deps =
-e .
commands =
prometheus-aioexporter-sample {posargs}
[base]
lint_files =
prometheus_aioexporter \
tests