-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.flake8
69 lines (66 loc) · 2.01 KB
/
.flake8
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
[flake8]
max-line-length = 120
max-complexity = 8
# http://flake8.pycqa.org/en/2.5.5/warnings.html#warning-error-codes
ignore =
### pydocstyle - docstring conventions (PEP257)
# blind except Exception: statement
B902
# too complex
C901
# Missing docstring in public module
D100
# Missing docstring in public class
D101
# Missing docstring in public method
D102
# Missing docstring in public function
D103
# Missing docstring in public package
D104
# Missing docstring in magic method
D105
# Missing docstring in public nested class
D106
# Missing docstring in __init__
D107
# First word of the first line should be properly capitalized
D403
# No blank lines allowed between a section header and its content
D412
### pycodestyle - style checker (PEP8)
# line break before binary operator
W503
### the following are ignored in CI using --extend-ignore option:
# [pydocstyle] 1 blank line required between summary line and description
D205
# [pydocstyle] First line should end with a period
D400
# Consider possible security implications associated with the subprocess module.
S404
# subprocess call - check for execution of untrusted input.
S603
# [pydocstyle] First line should be in imperative mood
; D401
# [bandit] Use of mark_safe() may expose cross-site scripting vulnerabilities and should be reviewed.
; S308
# [bandit] Potential XSS on mark_safe function.
; S703
DAR101
DAR201
# lowercase x imported as non lowercase
N812
per-file-ignores =
; D205 - 1 blank line required between summary line and description
; D400 - First line should end with a period
; D401 - First line should be in imperative mood
; S101 - use of assert
; S106 - hard-coded password
; E501 - line-length
; E731 - assigning a lambda to a variable
*tests/*:D205,D400,D401,S101,S106,E501,E731
*/migrations/*:E501
; F403 - unable to detect undefined names
; F405 - may be undefined, or defined from star imports
*/settings.py:F403,F405
*/settings/*:F403,F405