-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtox.ini
43 lines (36 loc) · 1.16 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
[tox]
envlist = cover,
pep8,
lint
[testenv]
basepython = python3.6
deps = -r{toxinidir}/requirements/tests
commands = pytest tests []
# --------------------------------------------------------------------
# Coverage
# --------------------------------------------------------------------
[testenv:cover]
commands = coverage run -m pytest tests []
coverage html -d .coverage_html
coverage report
# --------------------------------------------------------------------
# Lint
# --------------------------------------------------------------------
[testenv:pep8]
deps = flake8
flake8-quotes
flake8-import-order
commands = flake8 \
--max-complexity=15 \
--exclude=.ecosystem,.eggs,.tox,.venv,build,dist,docs,examples \
--ignore=F403 \
--max-line-length=99 \
--import-order-style=google \
--application-import-names=pecyn \
[]
[testenv:lint]
deps = pylint
commands = pylint \
--disable=C,R,fixme,attribute-defined-outside-init,protected-access,unused-argument,unused-import,broad-except \
pecyn \
[]