-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
80 lines (63 loc) · 1.77 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
74
75
76
77
78
79
80
# tox (https://tox.readthedocs.io/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist =
{linux, darwin, windows}-{py36, py39}-{test}
{linux}-{py39}-{lint}
{linux}-{py39}-{safety}
{linux}-{py39}-{metric}
{linux}-{py39}-{release}
[gh-actions]
python =
3.6: py36
3.9: py39
3.10: py310
[gh-actions:env]
PLATFORM =
ubuntu-latest: linux
macos-latest: darwin
windows-latest: windows
TASK =
build: build
test: test
lint: lint
safety: safety
metric: metric
release: release
[testenv]
deps =
build: -rreq-stable.txt
test: -rreq-test.txt
lint: -rreq-test.txt
safety: -rreq-test.txt
metric: -rreq-test.txt
release: -rreq-release.txt
commands =
python -m pip install --upgrade pip
pip check
pip list
build: python setup.py sdist bdist_wheel
build: pip install .
test: pip install .
test: pytest .
lint: pycodestyle --config="tox.ini" "."
safety: safety check
safety: bandit --recursive deleter --skip B102,B302,B404,B603,B607
metric: radon cc -a deleter
metric: radon mi deleter
metric: radon raw -s deleter
metric: radon hal -f deleter
release: python setup.py clean --all
release: python setup.py sdist bdist_wheel
release: twine check dist/*
[pycodestyle]
ignore = E501, C0301, W503, W504
max-line-length = 150
statistics = True
count = True
exclude =
.tox,.env,.venv,build,dist,tests,examples,ui,*.egg-info*,*cache*,.coverage,
*/.tox/*,*/.env/*,*/.venv/*,*/build/*,*/dist/*,*/tests/*,*/ui/*,*/*.egg*,
*/.*,*/.coverage,*/./venv/*,./venv,*/docs/*,docs,venv