-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtox.ini
51 lines (44 loc) · 1.24 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
[tox]
minversion = 2.6.0
envlist = py3{6,7,8,9}, flake8, pylint, coverage
[testenv]
commands = {envpython} -m unittest discover {posargs} {[common]test}
[testenv:flake8]
basepython = {[linters-common]python}
deps =
flake8
flake8-commas
flake8-docstrings
flake8-import-order
flake8-quotes
pep8-naming
commands =
{envpython} -m flake8 {[flake8-common]options} {posargs} {[common]code}
{envpython} -m flake8 {[flake8-common]options} --append-config={[common]test}/.flake8 {posargs} {[common]test}
[flake8-common]
options =
# Settings for flake8-import-order
--import-order-style=google
--application-import-names=tcm
# Settings for flake8-quotes
--inline-quotes=single
[testenv:pylint]
basepython = {[linters-common]python}
deps = pylint
commands =
{envpython} -m pylint {posargs} {[common]code}
{envpython} -m pylint --rcfile={[common]test}/.pylintrc {posargs} {[common]test}
[testenv:coverage]
basepython = {[linters-common]python}
deps = coverage
commands =
{envpython} -m coverage run -m unittest discover {posargs} {[common]test}
{envpython} -m coverage html
{envpython} -m coverage report --fail-under=100
[linters-common]
python = python3.9
[common]
code =
tcm
setup.py
test = test