-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlint.txt
559 lines (557 loc) · 56.2 KB
/
lint.txt
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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
************* Module /workspace/car-parking-reservation-api/.pylintrc
.pylintrc:1:0: F0011: error while parsing the configuration: File contains no section headers.
file: '/workspace/car-parking-reservation-api/.pylintrc', line: 1
'ignored-classes=SQLObject,Registrant,scoped_session\n' (config-parse-error)
************* Module admin.service
admin/service.py:8:0: C0115: Missing class docstring (missing-class-docstring)
admin/service.py:10:4: C0116: Missing function or method docstring (missing-function-docstring)
admin/service.py:8:0: R0903: Too few public methods (1/2) (too-few-public-methods)
************* Module auth.blueprint
auth/blueprint.py:21:0: C0115: Missing class docstring (missing-class-docstring)
auth/blueprint.py:26:0: C0115: Missing class docstring (missing-class-docstring)
auth/blueprint.py:34:0: C0115: Missing class docstring (missing-class-docstring)
auth/blueprint.py:39:0: C0115: Missing class docstring (missing-class-docstring)
auth/blueprint.py:44:0: C0116: Missing function or method docstring (missing-function-docstring)
auth/blueprint.py:61:0: C0116: Missing function or method docstring (missing-function-docstring)
auth/blueprint.py:77:0: C0116: Missing function or method docstring (missing-function-docstring)
auth/blueprint.py:92:0: C0116: Missing function or method docstring (missing-function-docstring)
auth/blueprint.py:10:0: C0411: third party import "from marshmallow import Schema, fields, validate" should be placed before "from jwt_wrapper.service import JwtService" (wrong-import-order)
auth/blueprint.py:13:0: C0411: third party import "from werkzeug.exceptions import Unauthorized" should be placed before "from jwt_wrapper.service import JwtService" (wrong-import-order)
************* Module auth.decorator
auth/decorator.py:14:0: C0116: Missing function or method docstring (missing-function-docstring)
auth/decorator.py:14:19: C0103: Argument name "f" doesn't conform to snake_case naming style (invalid-name)
auth/decorator.py:19:15: C0121: Comparison 'auth_header == None' should be 'auth_header is None' (singleton-comparison)
auth/decorator.py:23:15: C0121: Comparison 'jwt_token == None' should be 'jwt_token is None' (singleton-comparison)
auth/decorator.py:30:8: C0103: Variable name "e" doesn't conform to snake_case naming style (invalid-name)
auth/decorator.py:31:12: W0707: Consider explicitly re-raising using 'raise Unauthorized('Unauthorized!') from e' (raise-missing-from)
auth/decorator.py:30:8: W0612: Unused variable 'e' (unused-variable)
auth/decorator.py:36:0: C0116: Missing function or method docstring (missing-function-docstring)
auth/decorator.py:36:15: C0103: Argument name "f" doesn't conform to snake_case naming style (invalid-name)
auth/decorator.py:40:11: C0121: Comparison 'auth_header == None' should be 'auth_header is None' (singleton-comparison)
auth/decorator.py:8:0: C0411: third party import "from flask import request" should be placed before "from admin.service import AdminService" (wrong-import-order)
auth/decorator.py:9:0: C0411: third party import "from werkzeug.exceptions import Unauthorized" should be placed before "from admin.service import AdminService" (wrong-import-order)
************* Module auth.function
auth/function.py:9:0: C0116: Missing function or method docstring (missing-function-docstring)
************* Module auth
auth/__init__.py:9:11: E0604: Invalid object 'auth_blueprint' in __all__, must contain only strings (invalid-all-object)
auth/__init__.py:9:27: E0604: Invalid object 'login_required' in __all__, must contain only strings (invalid-all-object)
auth/__init__.py:9:43: E0604: Invalid object 'get_user' in __all__, must contain only strings (invalid-all-object)
************* Module auth.service
auth/service.py:10:0: C0115: Missing class docstring (missing-class-docstring)
auth/service.py:12:4: C0116: Missing function or method docstring (missing-function-docstring)
auth/service.py:10:0: R0903: Too few public methods (1/2) (too-few-public-methods)
auth/service.py:7:0: C0411: third party import "from werkzeug.exceptions import Unauthorized" should be placed before "from jwt_wrapper.service import JwtService" (wrong-import-order)
************* Module bcrypt_wrapper
bcrypt_wrapper/__init__.py:7:11: E0604: Invalid object 'BcryptService' in __all__, must contain only strings (invalid-all-object)
************* Module bcrypt_wrapper.service
bcrypt_wrapper/service.py:11:0: C0115: Missing class docstring (missing-class-docstring)
bcrypt_wrapper/service.py:16:4: C0116: Missing function or method docstring (missing-function-docstring)
bcrypt_wrapper/service.py:20:4: C0116: Missing function or method docstring (missing-function-docstring)
bcrypt_wrapper/service.py:20:29: W0622: Redefining built-in 'hash' (redefined-builtin)
************* Module car.blueprint
car/blueprint.py:12:0: E0401: Unable to import 'pagination.pagination' (import-error)
car/blueprint.py:12:0: E0611: No name 'pagination' in module 'pagination' (no-name-in-module)
car/blueprint.py:22:0: C0115: Missing class docstring (missing-class-docstring)
car/blueprint.py:29:0: C0115: Missing class docstring (missing-class-docstring)
car/blueprint.py:33:0: C0115: Missing class docstring (missing-class-docstring)
car/blueprint.py:37:0: C0115: Missing class docstring (missing-class-docstring)
car/blueprint.py:45:0: C0116: Missing function or method docstring (missing-function-docstring)
car/blueprint.py:54:0: C0116: Missing function or method docstring (missing-function-docstring)
car/blueprint.py:60:11: C0121: Comparison 'car_owner_check == True' should be 'car_owner_check is True' if checking for the singleton value True, or 'car_owner_check' if testing for truthiness (singleton-comparison)
car/blueprint.py:69:0: C0116: Missing function or method docstring (missing-function-docstring)
car/blueprint.py:80:0: C0116: Missing function or method docstring (missing-function-docstring)
car/blueprint.py:97:0: C0116: Missing function or method docstring (missing-function-docstring)
car/blueprint.py:107:0: C0116: Missing function or method docstring (missing-function-docstring)
car/blueprint.py:10:0: C0411: third party import "from flask import Blueprint, request" should be placed before "from auth.decorator import admin_only, login_required" (wrong-import-order)
car/blueprint.py:11:0: C0411: third party import "from marshmallow import Schema, fields, validate" should be placed before "from auth.decorator import admin_only, login_required" (wrong-import-order)
car/blueprint.py:15:0: C0411: third party import "from werkzeug.exceptions import Forbidden" should be placed before "from auth.decorator import admin_only, login_required" (wrong-import-order)
************* Module car
car/__init__.py:9:11: E0604: Invalid object 'Car' in __all__, must contain only strings (invalid-all-object)
car/__init__.py:9:16: E0604: Invalid object 'car_blueprint' in __all__, must contain only strings (invalid-all-object)
car/__init__.py:9:31: E0604: Invalid object 'CarService' in __all__, must contain only strings (invalid-all-object)
************* Module car.model
car/model.py:1:0: C0114: Missing module docstring (missing-module-docstring)
car/model.py:5:0: C0115: Missing class docstring (missing-class-docstring)
car/model.py:21:4: C0116: Missing function or method docstring (missing-function-docstring)
car/model.py:2:0: C0411: third party import "from sqlalchemy import Column, ForeignKey, Integer, String" should be placed before "from database import Base" (wrong-import-order)
************* Module car.service
car/service.py:67:22: C0303: Trailing whitespace (trailing-whitespace)
car/service.py:1:0: C0114: Missing module docstring (missing-module-docstring)
car/service.py:4:0: E0401: Unable to import 'pagination.pagination' (import-error)
car/service.py:4:0: E0611: No name 'pagination' in module 'pagination' (no-name-in-module)
car/service.py:13:0: C0115: Missing class docstring (missing-class-docstring)
car/service.py:18:4: C0116: Missing function or method docstring (missing-function-docstring)
car/service.py:13:0: R0903: Too few public methods (1/2) (too-few-public-methods)
car/service.py:22:0: C0115: Missing class docstring (missing-class-docstring)
car/service.py:24:4: C0116: Missing function or method docstring (missing-function-docstring)
car/service.py:27:12: E1101: Instance of 'scoped_session' has no 'add' member (no-member)
car/service.py:28:12: E1101: Instance of 'scoped_session' has no 'commit' member (no-member)
car/service.py:31:12: E1101: Instance of 'scoped_session' has no 'rollback' member (no-member)
car/service.py:32:12: W0707: Consider explicitly re-raising using 'except IntegrityError as exc' and 'raise Conflict('Car already registerd!') from exc' (raise-missing-from)
car/service.py:35:4: C0116: Missing function or method docstring (missing-function-docstring)
car/service.py:36:8: E1101: Instance of 'scoped_session' has no 'delete' member (no-member)
car/service.py:37:8: E1101: Instance of 'scoped_session' has no 'commit' member (no-member)
car/service.py:40:4: C0116: Missing function or method docstring (missing-function-docstring)
car/service.py:42:11: C0121: Comparison 'car == None' should be 'car is None' (singleton-comparison)
car/service.py:47:4: C0116: Missing function or method docstring (missing-function-docstring)
car/service.py:51:4: C0116: Missing function or method docstring (missing-function-docstring)
car/service.py:51:19: C0103: Argument name "id" doesn't conform to snake_case naming style (invalid-name)
car/service.py:51:19: W0622: Redefining built-in 'id' (redefined-builtin)
car/service.py:53:11: C0121: Comparison 'car == None' should be 'car is None' (singleton-comparison)
car/service.py:58:4: C0116: Missing function or method docstring (missing-function-docstring)
car/service.py:62:4: C0116: Missing function or method docstring (missing-function-docstring)
car/service.py:63:17: E1101: Instance of 'scoped_session' has no 'execute' member (no-member)
car/service.py:85:4: C0116: Missing function or method docstring (missing-function-docstring)
car/service.py:93:12: E1101: Instance of 'scoped_session' has no 'commit' member (no-member)
car/service.py:94:8: C0103: Variable name "e" doesn't conform to snake_case naming style (invalid-name)
car/service.py:96:12: E1101: Instance of 'scoped_session' has no 'rollback' member (no-member)
car/service.py:97:12: W0707: Consider explicitly re-raising using 'raise InternalServerError('Failed to update user!') from e' (raise-missing-from)
car/service.py:100:4: C0116: Missing function or method docstring (missing-function-docstring)
car/service.py:102:12: E1101: Instance of 'scoped_session' has no 'query' member (no-member)
car/service.py:5:0: C0411: third party import "from sqlalchemy import or_" should be placed before "from database.database import db_session" (wrong-import-order)
car/service.py:6:0: C0411: third party import "from sqlalchemy.exc import IntegrityError" should be placed before "from database.database import db_session" (wrong-import-order)
car/service.py:8:0: C0411: third party import "from werkzeug.exceptions import Conflict, InternalServerError, NotFound" should be placed before "from database.database import db_session" (wrong-import-order)
************* Module blueprint
chat/blueprint.py:9:0: E0401: Unable to import 'pagination.pagination' (import-error)
chat/blueprint.py:9:0: E0611: No name 'pagination' in module 'pagination' (no-name-in-module)
chat/blueprint.py:11:0: E0401: Unable to import 'chat.service' (import-error)
chat/blueprint.py:11:0: E0611: No name 'service' in module 'chat' (no-name-in-module)
chat/blueprint.py:18:0: C0116: Missing function or method docstring (missing-function-docstring)
chat/blueprint.py:8:0: C0411: third party import "from flask import Blueprint, request" should be placed before "from auth.decorator import login_required" (wrong-import-order)
************* Module handler
chat/handler.py:11:0: E0401: Unable to import 'chat.service' (import-error)
chat/handler.py:11:0: E0611: No name 'service' in module 'chat' (no-name-in-module)
chat/handler.py:14:0: C0115: Missing class docstring (missing-class-docstring)
chat/handler.py:19:4: C0116: Missing function or method docstring (missing-function-docstring)
chat/handler.py:27:4: C0116: Missing function or method docstring (missing-function-docstring)
chat/handler.py:34:4: C0116: Missing function or method docstring (missing-function-docstring)
chat/handler.py:41:4: C0116: Missing function or method docstring (missing-function-docstring)
chat/handler.py:48:4: W0221: Number of parameters was 7 in 'Namespace.emit' and is now 3 in overridden 'ChatMapper.emit' method (arguments-differ)
chat/handler.py:53:0: C0115: Missing class docstring (missing-class-docstring)
chat/handler.py:55:4: C0116: Missing function or method docstring (missing-function-docstring)
chat/handler.py:60:8: C0103: Variable name "e" doesn't conform to snake_case naming style (invalid-name)
chat/handler.py:61:12: W0707: Consider explicitly re-raising using 'raise Unauthorized('Invalid Jwt') from e' (raise-missing-from)
chat/handler.py:60:8: W0612: Unused variable 'e' (unused-variable)
chat/handler.py:63:4: C0116: Missing function or method docstring (missing-function-docstring)
chat/handler.py:66:4: C0116: Missing function or method docstring (missing-function-docstring)
chat/handler.py:72:4: C0116: Missing function or method docstring (missing-function-docstring)
chat/handler.py:78:4: C0116: Missing function or method docstring (missing-function-docstring)
chat/handler.py:93:4: C0116: Missing function or method docstring (missing-function-docstring)
chat/handler.py:125:8: W0702: No exception type(s) specified (bare-except)
chat/handler.py:5:0: C0411: third party import "from flask import request" should be placed before "from auth.service import AuthService" (wrong-import-order)
chat/handler.py:6:0: C0411: third party import "from flask_socketio import Namespace, emit" should be placed before "from auth.service import AuthService" (wrong-import-order)
chat/handler.py:9:0: C0411: third party import "from werkzeug.exceptions import NotFound, Unauthorized" should be placed before "from auth.service import AuthService" (wrong-import-order)
************* Module model
chat/model.py:34:0: C0301: Line too long (151/100) (line-too-long)
chat/model.py:60:0: C0301: Line too long (137/100) (line-too-long)
chat/model.py:12:0: C0115: Missing class docstring (missing-class-docstring)
chat/model.py:36:4: C0116: Missing function or method docstring (missing-function-docstring)
chat/model.py:46:0: C0115: Missing class docstring (missing-class-docstring)
chat/model.py:62:4: C0116: Missing function or method docstring (missing-function-docstring)
chat/model.py:70:4: C0116: Missing function or method docstring (missing-function-docstring)
chat/model.py:8:0: C0411: third party import "from sqlalchemy import Column, DateTime, ForeignKey, Integer, String" should be placed before "from database import Base" (wrong-import-order)
************* Module service
chat/service.py:10:0: E0401: Unable to import 'pagination.pagination' (import-error)
chat/service.py:10:0: E0611: No name 'pagination' in module 'pagination' (no-name-in-module)
chat/service.py:17:0: E0401: Unable to import 'chat.model' (import-error)
chat/service.py:17:0: E0611: No name 'model' in module 'chat' (no-name-in-module)
chat/service.py:20:0: C0115: Missing class docstring (missing-class-docstring)
chat/service.py:20:0: R0903: Too few public methods (0/2) (too-few-public-methods)
chat/service.py:25:0: C0115: Missing class docstring (missing-class-docstring)
chat/service.py:27:4: C0116: Missing function or method docstring (missing-function-docstring)
chat/service.py:33:12: E1101: Instance of 'scoped_session' has no 'add' member (no-member)
chat/service.py:34:12: E1101: Instance of 'scoped_session' has no 'commit' member (no-member)
chat/service.py:36:8: C0103: Variable name "e" doesn't conform to snake_case naming style (invalid-name)
chat/service.py:38:12: E1101: Instance of 'scoped_session' has no 'rollback' member (no-member)
chat/service.py:39:12: W0707: Consider explicitly re-raising using 'raise InternalServerError('Failed to send chat!') from e' (raise-missing-from)
chat/service.py:41:11: C0121: Comparison 'success == True' should be 'success is True' if checking for the singleton value True, or 'bool(success)' if testing for truthiness (singleton-comparison)
chat/service.py:41:31: C0121: Comparison 'update_target_chat_head == True' should be 'update_target_chat_head is True' if checking for the singleton value True, or 'bool(update_target_chat_head)' if testing for truthiness (singleton-comparison)
chat/service.py:45:4: C0116: Missing function or method docstring (missing-function-docstring)
chat/service.py:50:27: E1101: Instance of 'scoped_session' has no 'query' member (no-member)
chat/service.py:73:8: C0103: Variable name "e" doesn't conform to snake_case naming style (invalid-name)
chat/service.py:75:12: W0707: Consider explicitly re-raising using 'raise InternalServerError('Failed to retrieve chat history!') from e' (raise-missing-from)
chat/service.py:78:4: C0116: Missing function or method docstring (missing-function-docstring)
chat/service.py:87:15: C0121: Comparison 'exists_chat_head != None' should be 'exists_chat_head is not None' (singleton-comparison)
chat/service.py:88:16: E1101: Instance of 'scoped_session' has no 'query' member (no-member)
chat/service.py:93:16: E1101: Instance of 'scoped_session' has no 'add' member (no-member)
chat/service.py:95:12: E1101: Instance of 'scoped_session' has no 'commit' member (no-member)
chat/service.py:96:8: C0103: Variable name "e" doesn't conform to snake_case naming style (invalid-name)
chat/service.py:98:12: E1101: Instance of 'scoped_session' has no 'rollback' member (no-member)
chat/service.py:99:12: W0707: Consider explicitly re-raising using 'raise InternalServerError('Failed to update chat head!') from e' (raise-missing-from)
chat/service.py:102:4: C0116: Missing function or method docstring (missing-function-docstring)
chat/service.py:9:0: C0411: third party import "from marshmallow import fields, validate" should be placed before "from database.database import db_session" (wrong-import-order)
chat/service.py:11:0: C0411: third party import "from sqlalchemy.orm.query import Query" should be placed before "from database.database import db_session" (wrong-import-order)
chat/service.py:12:0: C0411: third party import "from sqlalchemy.sql import and_, or_" should be placed before "from database.database import db_session" (wrong-import-order)
chat/service.py:15:0: C0411: third party import "from werkzeug.exceptions import InternalServerError" should be placed before "from database.database import db_session" (wrong-import-order)
************* Module database.database
database/database.py:11:0: W0404: Reimport 'scoped_session' (imported line 9) (reimported)
database/database.py:17:0: C0116: Missing function or method docstring (missing-function-docstring)
database/database.py:24:0: C0116: Missing function or method docstring (missing-function-docstring)
database/database.py:31:0: R0903: Too few public methods (0/2) (too-few-public-methods)
database/database.py:43:0: C0116: Missing function or method docstring (missing-function-docstring)
database/database.py:47:4: C0415: Import outside toplevel (car.model) (import-outside-toplevel)
database/database.py:48:4: C0415: Import outside toplevel (chat.model) (import-outside-toplevel)
database/database.py:48:4: E0401: Unable to import 'chat.model' (import-error)
database/database.py:48:4: E0611: No name 'model' in module 'chat' (no-name-in-module)
database/database.py:49:4: C0415: Import outside toplevel (parking_lot.model) (import-outside-toplevel)
database/database.py:50:4: C0415: Import outside toplevel (payment.model) (import-outside-toplevel)
database/database.py:51:4: C0415: Import outside toplevel (reservation.model) (import-outside-toplevel)
database/database.py:52:4: C0415: Import outside toplevel (settings.model) (import-outside-toplevel)
database/database.py:53:4: C0415: Import outside toplevel (user.model) (import-outside-toplevel)
database/database.py:47:4: W0611: Unused import car.model (unused-import)
database/database.py:48:4: W0611: Unused import chat.model (unused-import)
database/database.py:49:4: W0611: Unused import parking_lot.model (unused-import)
database/database.py:50:4: W0611: Unused import payment.model (unused-import)
database/database.py:51:4: W0611: Unused import reservation.model (unused-import)
database/database.py:52:4: W0611: Unused import settings.model (unused-import)
database/database.py:53:4: W0611: Unused import user.model (unused-import)
database/database.py:7:0: C0411: third party import "from sqlalchemy import create_engine" should be placed before "from env_wrapper import load_env" (wrong-import-order)
database/database.py:8:0: C0411: third party import "from sqlalchemy.ext.declarative import declarative_base" should be placed before "from env_wrapper import load_env" (wrong-import-order)
database/database.py:9:0: C0411: third party import "from sqlalchemy.orm import scoped_session, sessionmaker" should be placed before "from env_wrapper import load_env" (wrong-import-order)
database/database.py:10:0: C0411: third party import "from sqlalchemy.orm.query import Query" should be placed before "from env_wrapper import load_env" (wrong-import-order)
database/database.py:11:0: C0411: third party import "from sqlalchemy.orm.scoping import scoped_session" should be placed before "from env_wrapper import load_env" (wrong-import-order)
database/database.py:12:0: C0411: third party import "from sqlalchemy.orm.session import Session" should be placed before "from env_wrapper import load_env" (wrong-import-order)
************* Module env_wrapper
env_wrapper/__init__.py:6:0: C0116: Missing function or method docstring (missing-function-docstring)
env_wrapper/__init__.py:7:4: C0415: Import outside toplevel (os) (import-outside-toplevel)
env_wrapper/__init__.py:9:4: C0415: Import outside toplevel (dotenv.load_dotenv) (import-outside-toplevel)
************* Module example.chat
example/chat.py:4:0: C0303: Trailing whitespace (trailing-whitespace)
example/chat.py:5:8: C0303: Trailing whitespace (trailing-whitespace)
example/chat.py:11:0: E0401: Unable to import 'pagination.pagination' (import-error)
example/chat.py:11:0: E0611: No name 'pagination' in module 'pagination' (no-name-in-module)
example/chat.py:14:0: E0401: Unable to import 'chat.service' (import-error)
example/chat.py:14:0: E0611: No name 'service' in module 'chat' (no-name-in-module)
************* Module jwt_wrapper
jwt_wrapper/__init__.py:7:11: E0604: Invalid object 'JwtService' in __all__, must contain only strings (invalid-all-object)
************* Module jwt_wrapper.service
jwt_wrapper/service.py:12:0: C0115: Missing class docstring (missing-class-docstring)
jwt_wrapper/service.py:15:4: C0116: Missing function or method docstring (missing-function-docstring)
jwt_wrapper/service.py:15:4: E0213: Method should have "self" as first argument (no-self-argument)
jwt_wrapper/service.py:16:8: E1137: 'value' does not support item assignment (unsupported-assignment-operation)
jwt_wrapper/service.py:17:8: E1137: 'value' does not support item assignment (unsupported-assignment-operation)
jwt_wrapper/service.py:17:23: E1136: Value 'value' is unsubscriptable (unsubscriptable-object)
jwt_wrapper/service.py:20:4: C0116: Missing function or method docstring (missing-function-docstring)
jwt_wrapper/service.py:20:4: E0213: Method should have "self" as first argument (no-self-argument)
jwt_wrapper/service.py:24:8: W0702: No exception type(s) specified (bare-except)
jwt_wrapper/service.py:27:4: C0116: Missing function or method docstring (missing-function-docstring)
jwt_wrapper/service.py:27:4: E0213: Method should have "self" as first argument (no-self-argument)
************* Module mock.mock
mock/mock.py:25:0: C0301: Line too long (127/100) (line-too-long)
mock/mock.py:6:0: E0401: Unable to import 'chat.service' (import-error)
mock/mock.py:6:0: E0611: No name 'service' in module 'chat' (no-name-in-module)
mock/mock.py:17:0: C0115: Missing class docstring (missing-class-docstring)
mock/mock.py:20:4: C0116: Missing function or method docstring (missing-function-docstring)
mock/mock.py:28:15: W0703: Catching too general exception Exception (broad-except)
mock/mock.py:28:8: C0103: Variable name "e" doesn't conform to snake_case naming style (invalid-name)
mock/mock.py:33:4: C0116: Missing function or method docstring (missing-function-docstring)
mock/mock.py:37:4: C0116: Missing function or method docstring (missing-function-docstring)
mock/mock.py:6:0: W0611: Unused ChatService imported from chat.service as _ (unused-import)
************* Module mock.seed_car
mock/seed_car.py:6:0: C0116: Missing function or method docstring (missing-function-docstring)
mock/seed_car.py:7:4: C0415: Import outside toplevel (car.service.CarService) (import-outside-toplevel)
mock/seed_car.py:8:4: C0415: Import outside toplevel (user.service.UserService) (import-outside-toplevel)
************* Module mock.seed_chat
mock/seed_chat.py:6:0: C0116: Missing function or method docstring (missing-function-docstring)
mock/seed_chat.py:9:4: E0401: Unable to import 'chat.service' (import-error)
mock/seed_chat.py:9:4: C0415: Import outside toplevel (chat.service.ChatService) (import-outside-toplevel)
mock/seed_chat.py:9:4: E0611: No name 'service' in module 'chat' (no-name-in-module)
mock/seed_chat.py:10:4: C0415: Import outside toplevel (user.service.UserService) (import-outside-toplevel)
************* Module mock.seed_parking_lot
mock/seed_parking_lot.py:6:0: C0116: Missing function or method docstring (missing-function-docstring)
mock/seed_parking_lot.py:7:4: C0415: Import outside toplevel (parking_lot.service.ParkingLotService) (import-outside-toplevel)
************* Module mock.seed_reservation
mock/seed_reservation.py:6:0: C0116: Missing function or method docstring (missing-function-docstring)
mock/seed_reservation.py:9:4: C0415: Import outside toplevel (datetime.datetime, datetime.timedelta) (import-outside-toplevel)
mock/seed_reservation.py:11:4: C0415: Import outside toplevel (car.service.CarService) (import-outside-toplevel)
mock/seed_reservation.py:12:4: C0415: Import outside toplevel (parking_lot.service.ParkingLotService) (import-outside-toplevel)
mock/seed_reservation.py:13:4: C0415: Import outside toplevel (payment.service.PaymentService) (import-outside-toplevel)
mock/seed_reservation.py:14:4: C0415: Import outside toplevel (reservation.service.ReservationService) (import-outside-toplevel)
mock/seed_reservation.py:15:4: C0415: Import outside toplevel (user.service.UserService) (import-outside-toplevel)
************* Module mock.seed_user
mock/seed_user.py:50:0: C0305: Trailing newlines (trailing-newlines)
mock/seed_user.py:6:0: C0116: Missing function or method docstring (missing-function-docstring)
mock/seed_user.py:7:4: C0415: Import outside toplevel (user.service.UserService) (import-outside-toplevel)
************* Module pagination
pagination/pagination.py:16:0: C0115: Missing class docstring (missing-class-docstring)
pagination/pagination.py:24:0: C0115: Missing class docstring (missing-class-docstring)
pagination/pagination.py:34:0: C0116: Missing function or method docstring (missing-function-docstring)
pagination/pagination.py:43:0: C0116: Missing function or method docstring (missing-function-docstring)
pagination/pagination.py:64:0: C0116: Missing function or method docstring (missing-function-docstring)
pagination/pagination.py:75:0: C0115: Missing class docstring (missing-class-docstring)
pagination/pagination.py:75:0: R0902: Too many instance attributes (8/7) (too-many-instance-attributes)
pagination/pagination.py:80:4: C0116: Missing function or method docstring (missing-function-docstring)
pagination/pagination.py:87:12: R1714: Consider merging these comparisons with 'in' by using 'opt.sort in (PaginationSortOptions.ASC, PaginationSortOptions.DESC)'. Use a set instead if elements are hashable. (consider-using-in)
pagination/pagination.py:94:4: C0116: Missing function or method docstring (missing-function-docstring)
pagination/pagination.py:81:8: W0201: Attribute '_page' defined outside __init__ (attribute-defined-outside-init)
pagination/pagination.py:82:8: W0201: Attribute '_limit' defined outside __init__ (attribute-defined-outside-init)
pagination/pagination.py:83:8: W0201: Attribute '_offset' defined outside __init__ (attribute-defined-outside-init)
pagination/pagination.py:84:8: W0201: Attribute '_order_by' defined outside __init__ (attribute-defined-outside-init)
pagination/pagination.py:85:8: W0201: Attribute '_search' defined outside __init__ (attribute-defined-outside-init)
pagination/pagination.py:90:12: W0201: Attribute '_sort' defined outside __init__ (attribute-defined-outside-init)
pagination/pagination.py:105:0: C0115: Missing class docstring (missing-class-docstring)
pagination/pagination.py:106:4: W0231: __init__ method from base class 'Pagination' is not called (super-init-not-called)
pagination/pagination.py:122:8: W0622: Redefining built-in 'exec' (redefined-builtin)
pagination/pagination.py:122:15: E1101: Instance of 'scoped_session' has no 'execute' member (no-member)
pagination/pagination.py:8:0: C0411: third party import "from flask import Request" should be placed before "from database.database import db_session" (wrong-import-order)
pagination/pagination.py:9:0: C0411: third party import "from marshmallow import Schema, fields, validate" should be placed before "from database.database import db_session" (wrong-import-order)
pagination/pagination.py:10:0: C0411: third party import "from sqlalchemy import column, desc, text" should be placed before "from database.database import db_session" (wrong-import-order)
pagination/pagination.py:11:0: C0411: third party import "from sqlalchemy.orm.query import Query" should be placed before "from database.database import db_session" (wrong-import-order)
pagination/pagination.py:13:0: C0411: third party import "from werkzeug.exceptions import BadRequest" should be placed before "from database.database import db_session" (wrong-import-order)
************* Module parking_lot.blueprint
parking_lot/blueprint.py:18:0: C0115: Missing class docstring (missing-class-docstring)
parking_lot/blueprint.py:23:0: C0115: Missing class docstring (missing-class-docstring)
parking_lot/blueprint.py:27:0: C0115: Missing class docstring (missing-class-docstring)
parking_lot/blueprint.py:33:0: C0116: Missing function or method docstring (missing-function-docstring)
parking_lot/blueprint.py:41:0: C0116: Missing function or method docstring (missing-function-docstring)
parking_lot/blueprint.py:46:7: C0121: Comparison 'parking_lot == None' should be 'parking_lot is None' (singleton-comparison)
parking_lot/blueprint.py:51:7: C0121: Comparison 'is_available == False' should be 'is_available is False' if checking for the singleton value False, or 'not is_available' if testing for falsiness (singleton-comparison)
parking_lot/blueprint.py:60:0: C0116: Missing function or method docstring (missing-function-docstring)
parking_lot/blueprint.py:73:0: C0116: Missing function or method docstring (missing-function-docstring)
parking_lot/blueprint.py:83:0: C0116: Missing function or method docstring (missing-function-docstring)
parking_lot/blueprint.py:9:0: C0411: third party import "from flask import Blueprint, request" should be placed before "from auth.decorator import admin_only, login_required" (wrong-import-order)
parking_lot/blueprint.py:10:0: C0411: third party import "from marshmallow import Schema, fields, validate" should be placed before "from auth.decorator import admin_only, login_required" (wrong-import-order)
************* Module parking_lot
parking_lot/__init__.py:10:11: E0604: Invalid object 'ParkingLot' in __all__, must contain only strings (invalid-all-object)
parking_lot/__init__.py:10:23: E0604: Invalid object 'parking_lot_blueprint' in __all__, must contain only strings (invalid-all-object)
parking_lot/__init__.py:10:46: E0604: Invalid object 'ParkingLotService' in __all__, must contain only strings (invalid-all-object)
************* Module parking_lot.model
parking_lot/model.py:1:0: C0114: Missing module docstring (missing-module-docstring)
parking_lot/model.py:5:0: C0115: Missing class docstring (missing-class-docstring)
parking_lot/model.py:19:4: C0116: Missing function or method docstring (missing-function-docstring)
parking_lot/model.py:2:0: C0411: third party import "from sqlalchemy import Boolean, Column, Integer, String" should be placed before "from database import Base" (wrong-import-order)
************* Module parking_lot.service
parking_lot/service.py:75:22: C0303: Trailing whitespace (trailing-whitespace)
parking_lot/service.py:77:20: C0303: Trailing whitespace (trailing-whitespace)
parking_lot/service.py:87:28: C0303: Trailing whitespace (trailing-whitespace)
parking_lot/service.py:89:27: C0303: Trailing whitespace (trailing-whitespace)
parking_lot/service.py:1:0: C0114: Missing module docstring (missing-module-docstring)
parking_lot/service.py:9:0: C0115: Missing class docstring (missing-class-docstring)
parking_lot/service.py:17:4: C0116: Missing function or method docstring (missing-function-docstring)
parking_lot/service.py:9:0: R0903: Too few public methods (1/2) (too-few-public-methods)
parking_lot/service.py:26:0: C0115: Missing class docstring (missing-class-docstring)
parking_lot/service.py:28:4: C0116: Missing function or method docstring (missing-function-docstring)
parking_lot/service.py:31:12: E1101: Instance of 'scoped_session' has no 'add' member (no-member)
parking_lot/service.py:32:12: E1101: Instance of 'scoped_session' has no 'commit' member (no-member)
parking_lot/service.py:35:12: E1101: Instance of 'scoped_session' has no 'rollback' member (no-member)
parking_lot/service.py:37:12: W0707: Consider explicitly re-raising using 'raise InternalServerError('Something error when adding parking lot') from err' (raise-missing-from)
parking_lot/service.py:40:4: C0116: Missing function or method docstring (missing-function-docstring)
parking_lot/service.py:48:12: E1101: Instance of 'scoped_session' has no 'commit' member (no-member)
parking_lot/service.py:49:8: C0103: Variable name "e" doesn't conform to snake_case naming style (invalid-name)
parking_lot/service.py:51:12: E1101: Instance of 'scoped_session' has no 'rollback' member (no-member)
parking_lot/service.py:52:12: W0707: Consider explicitly re-raising using 'raise InternalServerError('Failed to update parking lot!') from e' (raise-missing-from)
parking_lot/service.py:55:4: C0116: Missing function or method docstring (missing-function-docstring)
parking_lot/service.py:56:8: E1101: Instance of 'scoped_session' has no 'delete' member (no-member)
parking_lot/service.py:57:8: E1101: Instance of 'scoped_session' has no 'commit' member (no-member)
parking_lot/service.py:60:4: C0116: Missing function or method docstring (missing-function-docstring)
parking_lot/service.py:60:19: C0103: Argument name "id" doesn't conform to snake_case naming style (invalid-name)
parking_lot/service.py:60:19: W0622: Redefining built-in 'id' (redefined-builtin)
parking_lot/service.py:64:4: C0116: Missing function or method docstring (missing-function-docstring)
parking_lot/service.py:68:4: C0116: Missing function or method docstring (missing-function-docstring)
parking_lot/service.py:69:39: C0121: Comparison 'ParkingLot.open_status == True' should be 'ParkingLot.open_status is True' if checking for the singleton value True, or 'bool(ParkingLot.open_status)' if testing for truthiness (singleton-comparison)
parking_lot/service.py:72:4: C0116: Missing function or method docstring (missing-function-docstring)
parking_lot/service.py:73:17: E1101: Instance of 'scoped_session' has no 'execute' member (no-member)
parking_lot/service.py:101:4: C0116: Missing function or method docstring (missing-function-docstring)
parking_lot/service.py:4:0: C0411: third party import "from werkzeug.exceptions import InternalServerError" should be placed before "from database.database import db_session" (wrong-import-order)
************* Module payment.blueprint
payment/blueprint.py:13:0: E0401: Unable to import 'pagination.pagination' (import-error)
payment/blueprint.py:13:0: E0611: No name 'pagination' in module 'pagination' (no-name-in-module)
payment/blueprint.py:22:0: C0115: Missing class docstring (missing-class-docstring)
payment/blueprint.py:26:0: C0115: Missing class docstring (missing-class-docstring)
payment/blueprint.py:35:0: C0116: Missing function or method docstring (missing-function-docstring)
payment/blueprint.py:47:0: C0116: Missing function or method docstring (missing-function-docstring)
payment/blueprint.py:52:7: C0121: Comparison 'invoice == None' should be 'invoice is None' (singleton-comparison)
payment/blueprint.py:47:0: R1710: Either all return statements in a function should return an expression, or none of them should. (inconsistent-return-statements)
payment/blueprint.py:64:0: C0116: Missing function or method docstring (missing-function-docstring)
payment/blueprint.py:71:4: W0702: No exception type(s) specified (bare-except)
payment/blueprint.py:72:73: E0601: Using variable 'e' before assignment (used-before-assignment)
payment/blueprint.py:81:4: C0103: Variable name "e" doesn't conform to snake_case naming style (invalid-name)
payment/blueprint.py:86:7: C0121: Comparison 'event == None' should be 'event is None' (singleton-comparison)
payment/blueprint.py:93:14: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
payment/blueprint.py:96:14: C0209: Formatting a regular string which could be a f-string (consider-using-f-string)
payment/blueprint.py:103:0: C0116: Missing function or method docstring (missing-function-docstring)
payment/blueprint.py:109:0: C0116: Missing function or method docstring (missing-function-docstring)
payment/blueprint.py:120:0: C0116: Missing function or method docstring (missing-function-docstring)
payment/blueprint.py:11:0: C0411: third party import "from flask import Blueprint, jsonify, request" should be placed before "from auth.decorator import admin_only, login_required" (wrong-import-order)
payment/blueprint.py:12:0: C0411: third party import "from marshmallow import Schema, fields, validate" should be placed before "from auth.decorator import admin_only, login_required" (wrong-import-order)
************* Module payment.model
payment/model.py:1:0: C0114: Missing module docstring (missing-module-docstring)
payment/model.py:8:0: C0115: Missing class docstring (missing-class-docstring)
payment/model.py:18:0: C0115: Missing class docstring (missing-class-docstring)
payment/model.py:32:4: R0913: Too many arguments (7/5) (too-many-arguments)
payment/model.py:51:4: C0116: Missing function or method docstring (missing-function-docstring)
payment/model.py:5:0: C0411: third party import "from sqlalchemy import Column, DateTime, Enum, Float, ForeignKey, Integer, String" should be placed before "from database import Base" (wrong-import-order)
************* Module payment.service
payment/service.py:168:18: C0303: Trailing whitespace (trailing-whitespace)
payment/service.py:175:17: C0303: Trailing whitespace (trailing-whitespace)
payment/service.py:10:0: E0401: Unable to import 'pagination.pagination' (import-error)
payment/service.py:10:0: E0611: No name 'pagination' in module 'pagination' (no-name-in-module)
payment/service.py:20:0: C0115: Missing class docstring (missing-class-docstring)
payment/service.py:28:4: C0116: Missing function or method docstring (missing-function-docstring)
payment/service.py:20:0: R0903: Too few public methods (1/2) (too-few-public-methods)
payment/service.py:32:0: C0115: Missing class docstring (missing-class-docstring)
payment/service.py:38:4: C0116: Missing function or method docstring (missing-function-docstring)
payment/service.py:45:4: C0116: Missing function or method docstring (missing-function-docstring)
payment/service.py:67:4: C0116: Missing function or method docstring (missing-function-docstring)
payment/service.py:84:12: E1101: Instance of 'scoped_session' has no 'add' member (no-member)
payment/service.py:85:12: E1101: Instance of 'scoped_session' has no 'commit' member (no-member)
payment/service.py:88:8: C0103: Variable name "e" doesn't conform to snake_case naming style (invalid-name)
payment/service.py:90:12: E1101: Instance of 'scoped_session' has no 'rollback' member (no-member)
payment/service.py:91:12: W0707: Consider explicitly re-raising using 'raise InternalServerError('Failed to create invoice!') from e' (raise-missing-from)
payment/service.py:94:4: C0116: Missing function or method docstring (missing-function-docstring)
payment/service.py:96:12: E1101: Instance of 'scoped_session' has no 'query' member (no-member)
payment/service.py:103:12: E1101: Instance of 'scoped_session' has no 'commit' member (no-member)
payment/service.py:104:8: C0103: Variable name "e" doesn't conform to snake_case naming style (invalid-name)
payment/service.py:106:12: E1101: Instance of 'scoped_session' has no 'rollback' member (no-member)
payment/service.py:107:12: W0707: Consider explicitly re-raising using 'raise InternalServerError('Failed to update invoice!') from e' (raise-missing-from)
payment/service.py:110:4: C0116: Missing function or method docstring (missing-function-docstring)
payment/service.py:110:26: C0103: Argument name "id" doesn't conform to snake_case naming style (invalid-name)
payment/service.py:110:26: W0622: Redefining built-in 'id' (redefined-builtin)
payment/service.py:114:4: C0116: Missing function or method docstring (missing-function-docstring)
payment/service.py:118:4: C0116: Missing function or method docstring (missing-function-docstring)
payment/service.py:125:4: C0116: Missing function or method docstring (missing-function-docstring)
payment/service.py:129:4: C0116: Missing function or method docstring (missing-function-docstring)
payment/service.py:150:4: C0116: Missing function or method docstring (missing-function-docstring)
payment/service.py:150:33: C0103: Argument name "id" doesn't conform to snake_case naming style (invalid-name)
payment/service.py:150:33: W0622: Redefining built-in 'id' (redefined-builtin)
payment/service.py:154:4: C0116: Missing function or method docstring (missing-function-docstring)
payment/service.py:163:4: C0116: Missing function or method docstring (missing-function-docstring)
payment/service.py:15:0: C0411: third party import "from werkzeug.exceptions import BadRequest, InternalServerError, NotFound" should be placed before "from database.database import db_session" (wrong-import-order)
************* Module reservation.blueprint
reservation/blueprint.py:14:0: E0401: Unable to import 'pagination.pagination' (import-error)
reservation/blueprint.py:14:0: E0611: No name 'pagination' in module 'pagination' (no-name-in-module)
reservation/blueprint.py:23:0: C0115: Missing class docstring (missing-class-docstring)
reservation/blueprint.py:28:0: C0115: Missing class docstring (missing-class-docstring)
reservation/blueprint.py:32:0: C0115: Missing class docstring (missing-class-docstring)
reservation/blueprint.py:38:0: C0116: Missing function or method docstring (missing-function-docstring)
reservation/blueprint.py:49:0: C0116: Missing function or method docstring (missing-function-docstring)
reservation/blueprint.py:82:0: C0116: Missing function or method docstring (missing-function-docstring)
reservation/blueprint.py:110:0: C0116: Missing function or method docstring (missing-function-docstring)
reservation/blueprint.py:119:0: C0116: Missing function or method docstring (missing-function-docstring)
reservation/blueprint.py:12:0: C0411: third party import "from flask import Blueprint, request" should be placed before "from auth.decorator import admin_only, login_required" (wrong-import-order)
reservation/blueprint.py:13:0: C0411: third party import "from marshmallow import Schema, fields" should be placed before "from auth.decorator import admin_only, login_required" (wrong-import-order)
************* Module reservation.model
reservation/model.py:1:0: C0114: Missing module docstring (missing-module-docstring)
reservation/model.py:7:0: C0115: Missing class docstring (missing-class-docstring)
reservation/model.py:28:4: C0116: Missing function or method docstring (missing-function-docstring)
reservation/model.py:4:0: C0411: third party import "from sqlalchemy import Column, DateTime, ForeignKey, Integer" should be placed before "from database import Base" (wrong-import-order)
************* Module reservation.service
reservation/service.py:1:0: C0114: Missing module docstring (missing-module-docstring)
reservation/service.py:7:0: E0401: Unable to import 'pagination.pagination' (import-error)
reservation/service.py:7:0: E0611: No name 'pagination' in module 'pagination' (no-name-in-module)
reservation/service.py:19:0: C0115: Missing class docstring (missing-class-docstring)
reservation/service.py:26:4: C0116: Missing function or method docstring (missing-function-docstring)
reservation/service.py:19:0: R0903: Too few public methods (1/2) (too-few-public-methods)
reservation/service.py:39:0: C0115: Missing class docstring (missing-class-docstring)
reservation/service.py:41:4: C0116: Missing function or method docstring (missing-function-docstring)
reservation/service.py:53:12: E1101: Instance of 'scoped_session' has no 'add' member (no-member)
reservation/service.py:54:12: E1101: Instance of 'scoped_session' has no 'commit' member (no-member)
reservation/service.py:58:12: E1101: Instance of 'scoped_session' has no 'rollback' member (no-member)
reservation/service.py:63:4: C0116: Missing function or method docstring (missing-function-docstring)
reservation/service.py:64:8: E1101: Instance of 'scoped_session' has no 'query' member (no-member)
reservation/service.py:67:8: E1101: Instance of 'scoped_session' has no 'commit' member (no-member)
reservation/service.py:70:4: C0116: Missing function or method docstring (missing-function-docstring)
reservation/service.py:73:11: C0121: Comparison 'user == None' should be 'user is None' (singleton-comparison)
reservation/service.py:78:11: C0121: Comparison 'car == None' should be 'car is None' (singleton-comparison)
reservation/service.py:83:11: C0121: Comparison 'is_car_parking == True' should be 'is_car_parking is True' if checking for the singleton value True, or 'is_car_parking' if testing for truthiness (singleton-comparison)
reservation/service.py:88:11: C0121: Comparison 'user_own_car == False' should be 'user_own_car is False' if checking for the singleton value False, or 'not user_own_car' if testing for falsiness (singleton-comparison)
reservation/service.py:93:11: C0121: Comparison 'parking_lot == None' should be 'parking_lot is None' (singleton-comparison)
reservation/service.py:98:11: C0121: Comparison 'parking_lot_available == False' should be 'parking_lot_available is False' if checking for the singleton value False, or 'not parking_lot_available' if testing for falsiness (singleton-comparison)
reservation/service.py:105:4: C0116: Missing function or method docstring (missing-function-docstring)
reservation/service.py:105:19: C0103: Argument name "id" doesn't conform to snake_case naming style (invalid-name)
reservation/service.py:105:19: W0622: Redefining built-in 'id' (redefined-builtin)
reservation/service.py:109:4: C0116: Missing function or method docstring (missing-function-docstring)
reservation/service.py:112:23: E1101: Instance of 'scoped_session' has no 'query' member (no-member)
reservation/service.py:10:0: C0411: third party import "from sqlalchemy import or_" should be placed before "from car.model import Car" (wrong-import-order)
reservation/service.py:11:0: C0411: third party import "from sqlalchemy.orm import Query" should be placed before "from car.model import Car" (wrong-import-order)
reservation/service.py:14:0: C0411: third party import "from werkzeug.exceptions import Conflict, Forbidden, NotFound" should be placed before "from car.model import Car" (wrong-import-order)
************* Module settings.blueprint
settings/blueprint.py:19:0: C0115: Missing class docstring (missing-class-docstring)
settings/blueprint.py:29:0: C0116: Missing function or method docstring (missing-function-docstring)
settings/blueprint.py:43:0: C0116: Missing function or method docstring (missing-function-docstring)
settings/blueprint.py:9:0: C0411: third party import "from flask import Blueprint, request" should be placed before "from auth.decorator import admin_only" (wrong-import-order)
settings/blueprint.py:10:0: C0411: third party import "from marshmallow import Schema, fields, validate" should be placed before "from auth.decorator import admin_only" (wrong-import-order)
************* Module settings.model
settings/model.py:8:0: C0115: Missing class docstring (missing-class-docstring)
settings/model.py:29:4: C0116: Missing function or method docstring (missing-function-docstring)
settings/model.py:5:0: C0411: third party import "from sqlalchemy import Column, Float, Integer" should be placed before "from database import Base" (wrong-import-order)
************* Module settings.service
settings/service.py:10:0: C0115: Missing class docstring (missing-class-docstring)
settings/service.py:12:4: C0116: Missing function or method docstring (missing-function-docstring)
settings/service.py:20:12: E1101: Instance of 'scoped_session' has no 'commit' member (no-member)
settings/service.py:23:12: E1101: Instance of 'scoped_session' has no 'add' member (no-member)
settings/service.py:24:12: E1101: Instance of 'scoped_session' has no 'commit' member (no-member)
settings/service.py:27:12: E1101: Instance of 'scoped_session' has no 'rollback' member (no-member)
settings/service.py:22:8: W0612: Unused variable 'err' (unused-variable)
settings/service.py:31:4: C0116: Missing function or method docstring (missing-function-docstring)
settings/service.py:38:4: C0116: Missing function or method docstring (missing-function-docstring)
settings/service.py:45:12: W0707: Consider explicitly re-raising using 'raise Exception('Failed to create default settings!') from err' (raise-missing-from)
settings/service.py:44:8: W0612: Unused variable 'err' (unused-variable)
settings/service.py:5:0: C0411: third party import "from werkzeug.exceptions import NotFound" should be placed before "from database.database import db_session" (wrong-import-order)
************* Module user.blueprint
user/blueprint.py:10:0: E0401: Unable to import 'pagination.pagination' (import-error)
user/blueprint.py:10:0: E0611: No name 'pagination' in module 'pagination' (no-name-in-module)
user/blueprint.py:18:0: C0115: Missing class docstring (missing-class-docstring)
user/blueprint.py:25:0: C0115: Missing class docstring (missing-class-docstring)
user/blueprint.py:31:0: C0116: Missing function or method docstring (missing-function-docstring)
user/blueprint.py:42:0: C0116: Missing function or method docstring (missing-function-docstring)
user/blueprint.py:49:0: C0116: Missing function or method docstring (missing-function-docstring)
user/blueprint.py:64:0: C0116: Missing function or method docstring (missing-function-docstring)
user/blueprint.py:8:0: C0411: third party import "from flask import Blueprint, request" should be placed before "from auth.decorator import admin_only, login_required" (wrong-import-order)
user/blueprint.py:9:0: C0411: third party import "from marshmallow import Schema, fields, validate" should be placed before "from auth.decorator import admin_only, login_required" (wrong-import-order)
************* Module user
user/__init__.py:8:11: E0604: Invalid object 'User' in __all__, must contain only strings (invalid-all-object)
user/__init__.py:8:17: E0604: Invalid object 'UserService' in __all__, must contain only strings (invalid-all-object)
************* Module user.model
user/model.py:9:0: C0115: Missing class docstring (missing-class-docstring)
user/model.py:23:4: R0913: Too many arguments (8/5) (too-many-arguments)
user/model.py:44:4: C0116: Missing function or method docstring (missing-function-docstring)
user/model.py:50:4: C0116: Missing function or method docstring (missing-function-docstring)
user/model.py:60:4: C0116: Missing function or method docstring (missing-function-docstring)
user/model.py:6:0: C0411: third party import "from sqlalchemy import Column, Integer, String" should be placed before "from database.database import Base" (wrong-import-order)
************* Module user.service
user/service.py:1:0: C0114: Missing module docstring (missing-module-docstring)
user/service.py:5:0: E0401: Unable to import 'pagination.pagination' (import-error)
user/service.py:5:0: E0611: No name 'pagination' in module 'pagination' (no-name-in-module)
user/service.py:13:0: C0115: Missing class docstring (missing-class-docstring)
user/service.py:15:4: C0116: Missing function or method docstring (missing-function-docstring)
user/service.py:15:4: R0913: Too many arguments (7/5) (too-many-arguments)
user/service.py:35:12: E1101: Instance of 'scoped_session' has no 'add' member (no-member)
user/service.py:36:12: E1101: Instance of 'scoped_session' has no 'commit' member (no-member)
user/service.py:39:12: E1101: Instance of 'scoped_session' has no 'rollback' member (no-member)
user/service.py:40:12: W0707: Consider explicitly re-raising using 'except IntegrityError as exc' and 'raise Conflict('User already registerd!') from exc' (raise-missing-from)
user/service.py:43:4: C0116: Missing function or method docstring (missing-function-docstring)
user/service.py:47:4: C0116: Missing function or method docstring (missing-function-docstring)
user/service.py:55:4: C0116: Missing function or method docstring (missing-function-docstring)
user/service.py:60:4: C0116: Missing function or method docstring (missing-function-docstring)
user/service.py:60:19: C0103: Argument name "id" doesn't conform to snake_case naming style (invalid-name)
user/service.py:60:19: W0622: Redefining built-in 'id' (redefined-builtin)
user/service.py:65:4: C0116: Missing function or method docstring (missing-function-docstring)
user/service.py:83:4: C0116: Missing function or method docstring (missing-function-docstring)
user/service.py:93:12: E1101: Instance of 'scoped_session' has no 'commit' member (no-member)
user/service.py:94:8: C0103: Variable name "e" doesn't conform to snake_case naming style (invalid-name)
user/service.py:96:12: E1101: Instance of 'scoped_session' has no 'rollback' member (no-member)
user/service.py:97:12: W0707: Consider explicitly re-raising using 'raise InternalServerError('Failed to update user!') from e' (raise-missing-from)
user/service.py:100:4: C0116: Missing function or method docstring (missing-function-docstring)
user/service.py:106:12: E1101: Instance of 'scoped_session' has no 'commit' member (no-member)
user/service.py:107:8: C0103: Variable name "e" doesn't conform to snake_case naming style (invalid-name)
user/service.py:109:12: E1101: Instance of 'scoped_session' has no 'rollback' member (no-member)
user/service.py:110:12: W0707: Consider explicitly re-raising using 'raise InternalServerError('Failed to change user password!') from e' (raise-missing-from)
user/service.py:6:0: C0411: third party import "from sqlalchemy import or_" should be placed before "from bcrypt_wrapper.service import BcryptService" (wrong-import-order)
user/service.py:7:0: C0411: third party import "from sqlalchemy.exc import IntegrityError" should be placed before "from bcrypt_wrapper.service import BcryptService" (wrong-import-order)
user/service.py:8:0: C0411: third party import "from werkzeug.exceptions import Conflict, InternalServerError" should be placed before "from bcrypt_wrapper.service import BcryptService" (wrong-import-order)
************* Module util.validate_request
util/validate_request.py:14:0: C0116: Missing function or method docstring (missing-function-docstring)
util/validate_request.py:14:20: W0613: Unused argument 'schema' (unused-argument)
util/validate_request.py:14:31: W0613: Unused argument 'obj' (unused-argument)
util/validate_request.py:17:0: C0116: Missing function or method docstring (missing-function-docstring)
util/validate_request.py:22:4: W0622: Redefining built-in 'dict' (redefined-builtin)
util/validate_request.py:1:0: R0401: Cyclic import (database -> database.database -> payment.model) (cyclic-import)
util/validate_request.py:1:0: R0401: Cyclic import (database.database -> user.model) (cyclic-import)
util/validate_request.py:1:0: R0401: Cyclic import (user -> user.service) (cyclic-import)
util/validate_request.py:1:0: R0401: Cyclic import (car.model -> database -> database.database) (cyclic-import)
util/validate_request.py:1:0: R0401: Cyclic import (database -> database.database -> parking_lot.model) (cyclic-import)
util/validate_request.py:1:0: R0401: Cyclic import (database -> database.database -> reservation.model) (cyclic-import)
util/validate_request.py:1:0: R0401: Cyclic import (database -> database.database -> settings.model) (cyclic-import)
------------------------------------------------------------------
Your code has been rated at 3.34/10 (previous run: 3.34/10, +0.00)