-
Notifications
You must be signed in to change notification settings - Fork 8
/
tox.ini
55 lines (48 loc) · 854 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
[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
[base]
lint_files =
prometheus_aioexporter \
tests