-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
70 lines (62 loc) · 1.12 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
[tox]
minversion = 3.27.0
isolated_build = True
envlist = py310,linters
# Build/Test
[testenv]
deps =
pytest>=7.1
pytest-xdist>=3.0
commands =
pytest
[testenv:coverage]
deps =
{[testenv]deps}
pytest-cov>=4.0
commands =
pytest --cov --cov-report xml
# Lint
[testenv:flake8]
skip_install = true
deps =
flake8
flake8-bugbear
flake8-docstrings>=1.6
pep8-naming
commands =
flake8 src/git/ tests/
[testenv:bandit]
skip_install = true
deps =
bandit
commands =
bandit -c .bandit.yaml -r src tests
[testenv:linters]
skip_install = true
ignore_errors = true
deps =
{[testenv:flake8]deps}
{[testenv:bandit]deps}
commands =
{[testenv:flake8]commands}
{[testenv:bandit]commands}
# Documentation
[testenv:docs]
deps = -rrequirements-docs.txt
commands =
sphinx-build -b html docs/ docs/_build/
# Release
[testenv:build]
skip_install = true
deps =
build>=0.9
commands =
python -m build
[testenv:release]
skip_install = true
deps =
{[testenv:build]deps}
twine>=4.0
commands =
{[testenv:build]commands}
twine upload --non-interactive --skip-existing dist/*