This repository has been archived by the owner on Apr 22, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.cfg
53 lines (53 loc) · 2.08 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
[flake8]
max-line-length = 120
max-module-members = 10
max-local-variables = 7
max-methods = 10
; Q0 - double/single quotes
; C812 - missing trailing comma (conflicts with black)
; D - Docstrings
; S310 - Audit url open for permitted schemes
; S108 - Probable insecure usage of temp file/directory
; W503 - Line break before binary operator (conflicts with black)
; WPS114 - Found underscored number name pattern
; WPS226 - String constant overuse (config use case)
; WPS204 - Overused expression (config use case)
; WPS237 - too complex f-string
; WPS213 - Too many expressions
; WPS214 - Too many methods
; WPS235 - Too many imported names from module
; WPS202 - Too many module members
; WPS306 - Class without base class
; WPS305 - Forbid f-string
; WPS323 - '%' string formatting (logger case)
; WPS323 - implicit string concatenation
; WPS326 - explicit string concatenation
; WPS421 - print function usage
; WPS412 - __init__ with logic
; WPS410 - Wrong metadata variable
; WPS432 - magic numbers
; WPS430 - nested function
; WPS442 - found outer scope names shadowing
; WPS450 - protected object import
; WPS425 - Found boolean non-keyword argument
; WPS465 - Found likely bitwise and boolean operation mixup
; WPS528 - implicit '.items()' usage
; WPS609 - direct magic attribute usage
; WPS221 - Found line with high Jones Complexity
; WPS348 - Line starts with a dot
; WPS102 - Incorrect module name pattern
; WPS601 - Found shadowed class attribute
; WPS602 - Found using `@staticmethod`
; WPS230 - Found too many public instance attributes
; E203 - whitespace before ':'
; W605 - invalid escape sequence '\_'
; S101 - Use of assert detected
ignore = Q0 C812 D WPS305 WPS323 WPS226 WPS204 W503 WPS421 WPS412 WPS410 WPS306 WPS528 S310 WPS348 WPS602 E203 WPS114
per-file-ignores =
test_*: WPS450 WPS609 WPS326 WPS432 WPS336 WPS430 S108 WPS425 WPS213 WPS214 WPS235 WPS221 S101
main.py: WPS465 WPS235
handlers.py: WPS202
cve_bot/migrations/versions/*.py: WPS432 WPS221 WPS102
models.py: WPS432 WPS221 WPS601 WPS230
formatters.py: W605 WPS221 WPS237
conftest.py: WPS442