-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
88 lines (79 loc) · 1.99 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
[tox]
envlist =
lint
py38
py39
py310
py311
py312
skip_missing_interpreters = true
[testenv]
usedevelop = true
deps =
hypothesis
pytest
pytest-cov
commands =
py.test --cov=curver/kernel --cov-report=html --hypothesis-seed=3 {posargs}
[testenv:lint]
ignore_errors = true
deps =
flake8
pylint
sphinx
commands =
flake8
pylint --rcfile=tox.ini curver.kernel
sphinx-build -W -q -d {envtmpdir}/.doctrees docs {envtmpdir}/html
[flake8]
ignore = E123, E226, E301, E302, E305, E501, E701, E731, E741, W293, W391, W503
# 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
# E741: ambiguous variable name
# W293: blank line contains whitespace
# W391: blank line at end of file
# W503: line break before binary operator
exclude = .hg,.git,__pycache__,.tox,.eggs,*.egg,docs/conf.py,build,dist,scratch*,experiments
[pytest]
python_files = tests/*.py
markers=slow
[pylint.main]
load-plugins=
pylint.extensions.bad_builtin,
pylint.extensions.no_self_use,
bad-functions=
map,
filter,
print,
[pylint.messages_control]
fail-on=
useless-suppression,
disable=
duplicate-code,
fixme,
invalid-name,
line-too-long,
multiple-statements,
no-else-raise,
no-else-return,
protected-access,
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,
unnecessary-lambda-assignment,
unused-variable,
use-dict-literal,
enable=
bad-builtin,
useless-suppression,