forked from statsmodels/statsmodels
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
237 lines (213 loc) · 7.12 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
[metadata]
license_file = LICENSE.txt
[tool:pytest]
# minversion = 3.6
testpaths = statsmodels
addopts = --strict
# Filter warnings generated by dependencies
filterwarnings =
ignore:pandas.core.common.is_categorical_dtype:DeprecationWarning:patsy
ignore:Using or importing the ABCs:DeprecationWarning:patsy
ignore:Using a non-tuple sequence:FutureWarning:mkl_fft
ignore:Using a non-tuple:FutureWarning:scipy.signal
ignore:Using a non-tuple:FutureWarning:scipy.stats.stats
ignore:the matrix subclass is not the recommended:PendingDeprecationWarning:
ignore:Method .ptp is deprecated:FutureWarning:numpy.core.fromnumeric
ignore::DeprecationWarning:nbconvert.exporters.exporter_locator
ignore:Using or importing the ABCs:DeprecationWarning:jinja2.utils
error:genfromdta:FutureWarning:
error:StataReader:FutureWarning:
error:Estimation of VARMA:statsmodels.tools.sm_exceptions.EstimationWarning
error:Care should be used:UserWarning
error::statsmodels.tools.sm_exceptions.HypothesisTestWarning
error::statsmodels.tools.sm_exceptions.SpecificationWarning
markers =
example: mark a test that runs example code
matplotlib: mark a test that requires matplotlib
slow: mark a test as slow
smoke: mark a test as a smoketest
[versioneer]
VCS = git
style = pep440
versionfile_source = statsmodels/_version.py
versionfile_build = statsmodels/_version.py
tag_prefix = v
parentdir_prefix = statsmodels-
[flake8]
exclude=.git,build,docs,versioneer.py
select=
E101,
# E101: indentation contains mixed spaces and tabs
W191,
# W191: indentation contains tabs
E124,
# E124: closing bracket does not match visual indentation
F811,
# F811: redefinition of unused 'pytest' from line 10
F812,
# F812: list comprehension redefines 'x' from line 199
F822,
# F822: undefined name name in __all__
F823,
# F823: local variable name ... referenced before assignment
E129,
# E129: visually indented line with same indent as next logical line
E131,
# E131: continuation line unaligned for hanging indent
E125,
# E125: continuation line with same indent as next logical line
E111,
# E111: Indentation is not a multiple of four
E114,
# E114: Indentation is not a multiple of four (comment)
E117,
# E117: over-indented
E227,
# E227: missing whitespace around bitwise or shift operator
E228,
# E228: missing whitespace around modulo operator
E211,
# E211: whitespace before '['
W601,
# W601: .has_key() is deprecated, use 'in'
W391,
# W391: blank line at end of file
E112,
# E112: expected an indented block
E113,
# E113: unexpected indentation
E223,
# E223: tab before operator
E224,
# E224: tab after operator
E242,
# E242: tab after ','
E304,
# E304: blank lines found after function decorator
W602,
# W602: deprecated form of raising exception
W603,
# W603: '<>' is deprecated, use '!='
W604,
# W604: backticks are deprecated, use 'repr()'
# W605,
# W605: invalid escape sequence 'x'
W606,
# W606: 'async' and 'await' are reserved keywords starting with Python 3.7
F831,
# F831: duplicate argument name in function definition
E306,
# E306: expected 1 blank line before a nested definition, found 0
E702,
# E702: multiple statements on one line (semicolon)
E703,
# E703: statement ends with a semicolon
W2,
# W291: trailing whitespace
# W292: no newline at end of file
# W293: blank line contains whitespace
E711,
# E711: comparison to None should be 'if cond is None:'
E712,
# E712: comparison to True should be 'if cond is True:' or 'if cond:'
E713,
# E713: test for membership should be 'not in'
E721,
# E721: do not compare types, use 'isinstance()'
E74,
# E741 ambiguous variable name 'l', 'O', or 'I'
# E742: do not define classes named 'l', 'O', or 'I'
# E743: do not define functions named 'l', 'O', or 'I'
F4,
# F401: 'foo.bar' imported but unused
# F402: import 'assert_equal' from line 7 shadowed by loop variable
# F403: 'from .data import *' used; unable to detect undefined names
# F404: future import(s) name after other statements
# F405: name may be undefined, or defined from star imports: module
# F406: 'from module import *' only allowed at module level
# F407: an undefined __future__ feature name was imported
F6,
# F601: dictionary key name repeated with different values
# F602: dictionary key variable name repeated with different values
# F621: too many expressions in an assignment with star-unpacking
# F622: two or more starred expressions in an assignment (a, *b, *c = d)
# F631: assertion test is a tuple, which are always True
# F632: use ==/!= to compare str, bytes, and int literals
F7,
# F701: a break statement outside of a while or for loop
# F702: a continue statement outside of a while or for loop
# F703: a continue statement in a finally block in a loop
# F704: a yield or yield from statement outside of a function
# F705: a return statement with arguments inside a generator
# F706: a return statement outside of a function/method
# F707: an except: block as not the last exception handler
# F721: doctest syntax error
# F722: syntax error in forward type annotation
F821,
# F821: undefined name 'foobar'
F9,
# F901: raise NotImplemented should be raise NotImplementedError
E27,
# E271: multiple spaces after keyword
# E272: multiple spaces before keyword
# E273: tab after keyword
# E274: tab before keyword
# E275: missing whitespace after keyword
E4,
# E401: multiple imports on one line
# E402: module level import not at top of file
E9,
# E901: SyntaxError or IndentationError
# E902: IOError
# E999: Syntax Error
[coverage:run]
source = statsmodels
branch = True
plugins = Cython.Coverage
omit =
# print_version is untestable
*/print_version.py
# skip compatibility code
*/compat/*
# Unused file
*/results/gee_generate_tests.py
# Results for tests
*/tests/results/*
# Simulation checks
*/tests/*_simulation_check.py
# Misc non-test files in test directories
*/tests/_*
*/tests/e*
*/tests/c*
*/tests/d*
*/tests/g*
*/tests/m*
*/tests/p*
*/tests/r*
*/tests/s*
# Versioneer
*/_version.py
[coverage:report]
show_missing = True
ignore_errors = False
# Regexes for lines to exclude from consideration
exclude_lines =
# Have to re-enable the standard pragma
pragma: no cover
# Don't complain about missing debug-only code:
def __repr__
if self\.debug
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
except NotImplementedError
except ImportError
except (HTTPError, URLError, SSLError, timeout)
except IGNORED_EXCEPTIONS
# Ignore pass
pass
# Don't complain if non-runnable code isn't run:
if 0:
if __name__ == .__main__.:
[coverage:html]
directory = coverage_html_report