-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
264 lines (259 loc) · 5.8 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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
[darglint]
docstring_style=google
[flake8]
enable = B,C,E,F,G,P,SIM1,T4,W,B9,TOR0,TOR1,TOR2
max-line_length = 120
ignore =
E203,E305,E402,E501,E721,E741,F405,F841,F999,W503,W504,C408,E302,W291,E303,
# shebang has extra meaning in fbcode lints, so I think it's not worth trying
# to line this up with executable bit
EXE001,
# these ignores are from flake8-bugbear; please fix!
B007,B008,B017,B019,B023,B028,B903,B904,B905,B906,B907
# these ignores are from flake8-comprehensions; please fix!
C407,
# these ignores are from flake8-logging-format; please fix!
G100,G101,G200
# these ignores are from flake8-simplify. please fix or ignore with commented reason
SIM105,SIM108,SIM110,SIM111,SIM113,SIM114,SIM115,SIM116,SIM117,SIM118,SIM119,SIM12,
# flake8-simplify code styles
SIM102,SIM103,SIM106,SIM112,
# TorchFix codes that don't make sense for PyTorch itself:
# removed and deprecated PyTorch functions.
TOR001,TOR101,
# TODO(kit1980): fix all TOR102 issues
# `torch.load` without `weights_only` parameter is unsafe
# TOR102,
# WPS100,
# Found incorrect module name pattern
WPS102,
I,
# B009,
# B024,
# B027,
# missing trailing comma
C812,
# C819,
# D101,
# D102,
# Missing docstring in public function
D103,
# D105,
# D106,
# D107,
# D203,
# D205,
# D208,
# D209,
# D212,
# D213,
# D300,
# D400,
# First line should be in imperative mood; try rephrasing
D401,
# D402,
D403,
# D404,
# D405,
# D407,
# D412,
# D413,
# D415,
# DAR101,
# DAR201,
# DAR301,
# Missing exception(s) in Raises section: -r ValueError
DAR401,
# Found commented out code
E800,
# :Found backslash that is used for line breaking
N400,
# N801,
# N802,
# N816,
# P101,
# PT009,
# PT018,
# Q000,
# Q001,
# Q002,
# Q003,
# RST201,
# RST203,
# RST299,
# RST301,
# RST499,
# Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
S101,
# S104,
# S105,
# S303,
# S311,
# Consider possible security implications associated with the subprocess module.
S404,
# subprocess call - check for execution of untrusted input.
S603,
# S607,
# WPS100,
# WPS102,
# Found wrong variable name
WPS110,
# Found too short name
WPS111,
# WPS114,
# WPS115,
# WPS118,
# Found regular name with trailing underscore
WPS120,
# WPS121,
# WPS122,
# Found module with too many imports
WPS201,
# Found too many module members
WPS202,
# WPS203,
# Found overused expression:
WPS204,
# Found too many local variables
WPS210,
WPS211,
# WPS212,
# WPS213,
# Found too many methods
WPS214,
# WPS216,
# WPS219,
# Found too deep nesting
WPS220,
# Found line with high Jones Complexity
WPS221,
# WPS222,
# WPS223,
# WPS225,
# Found string literal over-use
WPS226,
# Found too long ``try`` body length
WPS229,
# Found too many public instance attributes
WPS230,
# Found function with too much cognitive complexity
WPS231,
# Found module cognitive complexity that is too high
WPS232,
# WPS234,
# WPS235,
# WPS237,
# Found local folder import
WPS300,
# Found dotted raw import
WPS301,
# WPS305,
# WPS306,
# WPS313,
# Found incorrect multi-line parameters
WPS317,
# Found extra indentation
WPS318,
# Found bracket in wrong position
WPS319,
# WPS320,
# WPS322,
# WPS323,
# WPS324,
# WPS326,
# WPS328,
# Found explicit string concatenation
WPS336,
# WPS337,
# WPS338,
# WPS339,
# WPS349,
# WPS360,
# WPS361,
# Found `noqa` comments overuse:
WPS402,
# WPS403,
# WPS407,
# WPS408,
# WPS410,
# Found `__init__.py` module with logic
WPS412,
# WPS414,
# WPS420,
# Found wrong function call
WPS421,
# WPS425,
# WPS428,
# WPS430,
# WPS431,
# Found magic number
WPS432,
# WPS433,
# Found list multiply
WPS435,
# WPS437,
# WPS440,
# WPS441,
# WPS442,
# WPS453,
# WPS454,
WPS457,
# WPS458,
# WPS460,
# WPS464,
# WPS501,
# WPS504,
# WPS505,
# WPS507,
# WPS508,
# WPS509,
# Found `in` used with a non-set container
WPS510,
# WPS513,
WPS515,
# Found implicit `enumerate()` call
WPS518,
# WPS519,
# WPS528,
# WPS529,
# WPS531,
# WPS602,
# WPS604,
# WPS605,
# WPS609,
# WPS612,
# WPS613,
# Found unpythonic getter or setter
WPS615,
# PT027,
# Consider possible security implications associated with pickle module.
S403,
# Pickle and modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue.
S301
per-file-ignores =
__init__.py: F401, WPS235, WPS410
word_embedding.py: D101, D102, D107
sum_pooling.py,
auxiliary_counter.py,
decoder.py,
dataloader.py: D100, D101, D102, D105, D107
exception.py: D101, D107
beam.py: D100, D107
Lambda.py, onehot.py: D100, D101, D102, D107, N812
Substance_check.py: D100
hydrogen_estimator.py: D100, D101, D102, D107
type.py: D101, D102
./unittests/*: D107
./fp_sampling/*: WPS459, WPS331, D101, D102, D107, WPS465
./random_generator/*: D101, D107
./model/dataset.py: D105, D107
./model/sampler.py: WPS420, D101, D105, D107
optional-ascii-coding = True
use-fstring-max-function-locals = 10
exclude =
./.git/*,
./venv/*,
config.py,
__pycache__,
.git,
.gitignore