-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
79 lines (69 loc) · 1.62 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
[tox]
envlist =
py27
py34
py35
py36
skip_missing_interpreters = true
[testenv]
usedevelop = true
deps =
pytest
snappy
commands =
py.test {posargs}
[testenv:lint2]
basepython = python2.7
deps =
flake8
pylint
commands =
flake8
pylint twister
[testenv:lint3]
basepython = python3.6
deps =
flake8
pylint!=2.0.0
commands =
flake8
pylint twister
[testenv:docs]
deps = sphinx
commands = sphinx-build -W -d {envtmpdir}/.doctrees docs {envtmpdir}/html
[flake8]
ignore =
E123, # closing bracket does not match indentation of opening bracket's line
E226, # missing whitespace around arithmetic operator
E301, # expected 1 blank line, found 0
E302, # expected 2 blank lines, found 1
E305, # expected 2 blank lines after class or function definition, found 1
E501, # line too long
E701, # multiple statements on one line (colon)
E731, # do not assign a lambda expression, use a def
W293, # blank line contains whitespace
W391, # blank line at end of file
exclude = .hg,.git,__pycache__,.tox,.eggs,*.egg,docs/conf.py,build,dist,scratch*,experiments
[pytest]
python_files = tests/*.py
# PyLint
[MESSAGES CONTROL]
disable=
duplicate-code,
fixme,
invalid-name,
line-too-long,
multiple-statements,
no-else-return,
protected-access,
too-few-public-methods,
too-many-branches,
too-many-instance-attributes,
too-many-locals,
too-many-public-methods,
too-many-return-statements,
too-many-statements,
trailing-newlines,
trailing-whitespace,
unused-variable,
useless-object-inheritance,