forked from albertodonato/query-exporter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
44 lines (38 loc) · 784 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
[tox]
skipsdist = True
[globals]
lint_files = setup.py query_exporter
[testenv]
deps =
.
.[testing]
commands =
{envbindir}/pytest {posargs}
[testenv:format]
deps =
isort
yapf
commands =
{envbindir}/yapf --in-place --recursive {[globals]lint_files}
{envbindir}/isort --recursive {[globals]lint_files}
[testenv:lint]
deps =
flake8
isort
yapf
commands =
{envbindir}/yapf --diff --recursive {[globals]lint_files}
{envbindir}/isort --check-only --diff --recursive {[globals]lint_files}
{envbindir}/flake8 {[globals]lint_files}
[testenv:check]
deps =
mypy
commands =
{envbindir}/mypy -p query_exporter {posargs}
[testenv:coverage]
deps =
.
.[testing]
pytest-cov
commands =
{envbindir}/pytest --cov {posargs}