-
Notifications
You must be signed in to change notification settings - Fork 3
/
tox.ini
108 lines (100 loc) · 1.97 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
[tox]
envlist =
black
py38
flake8
build
[testenv]
depends = black
deps =
nose
coverage <5.0
commands = nosetests []
[testenv:black]
depends =
changedir = {toxinidir}
basepython = python3.8
skip_install = true
deps = black
commands = black .
[testenv:flake8]
basepython = python3.8
skip_install = true
deps =
flake8
flake8-mutable
flake8-bandit
flake8-blind-except
flake8-bugbear
flake8-comprehensions
flake8-docstrings
pydocstyle
flake8-print
flake8-fixme
flake8_builtins
flake8_coding
flake8_copyright
flake8_deprecated
flake8_pep3101
flake8_quotes
flake8_self
flake8-import-order
flake8-mypy
mccabe
pep8-naming
pyflakes
flake8-html
radon
flake8-2020
flake8-breakpoint
flake8-return
flake8-rst
flake8-logging-format
flake8-pep3101
flake8-pyi
flake8-strict
setenv =
MYPYPATH = {toxinidir}
commands = {toxinidir}/helpers/call_and_write_log.py \
"flake8 {toxinidir} --htmldir={toxinidir}/flake8" 0
[testenv:build]
basepython = python3.8
skip_install = true
deps =
wheel
setuptools
twine
commands =
python setup.py sdist bdist_wheel
twine check dist/*
[testenv:release-test]
basepython = python3.8
skip_install = true
deps =
{[testenv:build]deps}
commands =
{[testenv:build]commands}
twine upload --skip-existing --repository testpypi dist/*
[testenv:clean]
changedir = {toxinidir}
skip_install = true
deps =
whitelist_externals =
rm
find
commands =
rm -rf ./cover
rm -rf ./flake8
rm -rf ./dist
rm -rf ./build
rm -rf ./.tox
rm -rf ./.mypy_cache
rm -rf ./.coverage
rm -rf ./docs/_build/*
find . -type f -name '*~' -delete
find . -type f -name '.*~' -delete
find . -type f -name '*.pyc' -delete
find . -type f -name '*.log' -delete
find . -type f -name '*.sav' -delete
find . -type f -name '*.bak' -delete
find . -type d -name '__pycache__' -delete