-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
73 lines (65 loc) · 1.17 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
63
64
65
66
67
68
69
70
71
72
73
[tox]
envlist =
py310
py311
py312
py313
type
lint
format
docs
bandit
pre-commit
skip_missing_interpreters = {env:TOX_SKIP_MISSING:true}
[testenv]
extras =
dev
commands =
pytest {posargs}
[testenv:type]
description = run type checks
labels = style, type
extras =
dev
commands =
mypy {posargs}
[testenv:lint]
description = run linters
labels = style
skip_install = true
deps =
ruff
commands =
ruff check --diff {posargs}
[testenv:format]
description = run formatter
labels = style
skip_install = true
deps =
ruff
commands =
ruff format --diff {posargs}
[testenv:docs]
description = create docs
labels = docs, style
extras =
docs
commands =
sphinx-apidoc --maxdepth 2 --remove-old --force --module-first --separate --output-dir docs/api configparser_override
sphinx-build -M html docs/ docs/_build/ --write-all --fresh-env
[testenv:bandit]
description = run bandit
labels = sec
skip_install = true
deps =
bandit
commands =
bandit -r configparser_override
[testenv:pre-commit]
description = run pre-commit
labels = style
skip_install = true
deps =
pre-commit
commands =
pre-commit run --all-files