-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
127 lines (111 loc) · 2.64 KB
/
setup.cfg
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# Automatically generated by nengo-bones, do not edit this file directly
[build_sphinx]
source-dir = docs
build-dir = docs/_build
all_files = 1
[coverage:run]
source = ./
relative_files = True
[coverage:report]
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
# place ``# pragma: no cover`` at the end of a line to ignore it
pragma: no cover
# Don't complain if tests don't hit defensive assertion code:
raise NotImplementedError
# `pass` is just a placeholder, fine if it's not covered
^[ \t]*pass$
# Patterns for files to exclude from reporting
omit =
*/tests/test*
*/setup.py
[flake8]
exclude =
__init__.py
ignore =
E123
E133
E203
E226
E241
E242
E501
E731
F401
W503
max-complexity = 10
max-line-length = 88
[tool:pytest]
addopts = --cov --cov-append
norecursedirs =
.*
*.egg
build
dist
docs
allclose_tolerances =
test_tolerances_big atol=0.01 rtol=0.2
test_tolerances_small atol=0.001 rtol=0.005 # test comment
test_parametrized[True] atol=0.1 rtol=0.2
test_parametrized[False] atol=0.001 rtol=0.002
test_precedence[1] atol=1 rtol=2
test_precedence* atol=2 rtol=4
test_precedence[3] atol=3 rtol=6
test_multiple_tolerances atol=0.001 rtol=0.004
test_multiple_tolerances atol=0.01 rtol=0.05
test_multiple_tolerances atol=0.002 rtol=0.005
xfail_strict = False
[pylint]
[pylint.messages]
disable =
arguments-differ,
assignment-from-no-return,
attribute-defined-outside-init,
blacklisted-name,
comparison-with-callable,
duplicate-code,
fixme,
import-error,
invalid-name,
invalid-sequence-index,
len-as-condition,
literal-comparison,
no-else-raise,
no-else-return,
no-member,
no-name-in-module,
not-an-iterable,
not-context-manager,
protected-access,
redefined-builtin,
stop-iteration-return,
too-few-public-methods,
too-many-arguments,
too-many-branches,
too-many-instance-attributes,
too-many-lines,
too-many-locals,
too-many-return-statements,
too-many-statements,
unexpected-keyword-arg,
unidiomatic-typecheck,
unsubscriptable-object,
unsupported-assignment-operation,
unused-argument,
consider-using-f-string,
[pylint.imports]
known-third-party =
matplotlib,
nengo,
numpy,
pytest,
[pylint.format]
max-line-length = 88
[pylint.classes]
valid-metaclass-classmethod-first-arg = metacls
[pylint.reports]
reports = no
score = no
[codespell]
skip = ./build,*/_build,*-checkpoint.ipynb,./.eggs,./*.egg-info,./.git,*/_vendor,./.mypy_cache,