-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
62 lines (55 loc) · 1.21 KB
/
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
62
[tox]
envlist = lint,codespell,flake8,black,{py37,py38,py39,py310,py311,py312}-{test}
skip_missing_interpreters = true
skipsdist = true
[testenv]
deps =
test: {[testenv:test]deps}
codespell: {[testenv:codespell]deps}
lint: {[testenv:lint]deps}
flake8: {[testenv:flake8]deps}
black: {[testenv:black]deps}
commands =
test: {[testenv:test]commands}
codespell: {[testenv:codespell]commands}
lint: {[testenv:lint]commands}
flake8: {[testenv:flake8]commands}
black: {[testenv:black]commands}
[testenv:test]
deps =
pytest
pytest-cov
pytest-mock
-rrequirements.txt
commands =
pytest {posargs}
[testenv:codespell]
deps =
codespell
commands =
codespell
[testenv:lint]
deps =
pylint
pytest
-rrequirements.txt
commands =
pylint --rcfile=setup.cfg check_labels.py
[testenv:flake8]
deps =
flake8
-rrequirements.txt
commands =
flake8 check_labels.py
[testenv:black]
deps =
black
-rrequirements.txt
commands =
black --check --diff --exclude '\.tox|dist|env|build' .
[testenv:build-doc]
deps =
sphinx
sphinx-readable-theme
commands =
sphinx-build -M html docs/source docs/build -W