-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
84 lines (75 loc) · 2 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
[tox]
envlist =
lint
{py38,py39,py310,py311,py312,pypy38,pypy39}-{sympy,cypari}
skip_missing_interpreters = true
[testenv]
usedevelop = true
deps =
hypothesis
pytest
pytest-cov
cypari: cypari
cypari2: cypari2
commands =
py.test {posargs}
[testenv:lint]
deps =
flake8
pylint
commands =
flake8
pylint --rcfile=tox.ini realalg
pylint --disable=all --enable=bad-builtin --load-plugins=pylint.extensions.bad_builtin --bad-functions="print" --reports=no realalg
[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
[pylint.main]
load-plugins=
pylint.extensions.bad_builtin,
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-few-public-methods,
too-many-arguments,
too-many-branches,
too-many-instance-attributes,
too-many-lines,
too-many-locals,
too-many-nested-blocks,
too-many-public-methods,
too-many-return-statements,
too-many-statements,
trailing-newlines,
trailing-whitespace,
unused-variable,
enable=
bad-builtin,
useless-suppression,