|
1 | 1 | [flake8] |
2 | 2 | max-line-length = 88 |
3 | 3 | max-complexity = 42 |
4 | | -# http://flake8.pycqa.org/en/2.5.5/warnings.html#warning-error-codes |
5 | 4 | ignore = |
6 | | - # pydocstyle - docstring conventions (PEP257) |
7 | | - D100 # Missing docstring in public module |
8 | | - D101 # Missing docstring in public class |
9 | | - D102 # Missing docstring in public method |
10 | | - D103 # Missing docstring in public function |
11 | | - D104 # Missing docstring in public package |
12 | | - D105 # Missing docstring in magic method |
13 | | - D106 # Missing docstring in public nested class |
14 | | - D107 # Missing docstring in __init__ |
15 | | - D403 # First word of the first line should be properly capitalized |
16 | | - D412 # No blank lines allowed between a section header and its content |
17 | | - # pycodestyle - style checker (PEP8) |
18 | | - W503 # line break before binary operator |
19 | | - # the following are ignored in CI using --extend-ignore option: |
20 | | - D205 # [pydocstyle] 1 blank line required between summary line and description |
21 | | - D400 # [pydocstyle] First line should end with a period |
22 | | - S404 # Consider possible security implications associated with the subprocess module. |
23 | | - S603 # subprocess call - check for execution of untrusted input. |
24 | | - D401 # [pydocstyle] First line should be in imperative mood |
25 | | - ; S308 # [bandit] Use of mark_safe() may expose cross-site scripting vulnerabilities and should be reviewed. |
26 | | - ; S703 # [bandit] Potential XSS on mark_safe function. |
27 | | - S101 # use of assert |
28 | | - |
| 5 | + D100 |
| 6 | + D101 |
| 7 | + D102 |
| 8 | + D103 |
| 9 | + D104 |
| 10 | + D105 |
| 11 | + D106 |
| 12 | + D107 |
| 13 | + D403 |
| 14 | + D412 |
| 15 | + W503 |
| 16 | + D205 |
| 17 | + D400 |
| 18 | + S404 |
| 19 | + S603 |
| 20 | + D401 |
| 21 | + S101 |
| 22 | + |
29 | 23 | per-file-ignores = |
30 | | - ; D205 - 1 blank line required between summary line and description |
31 | | - ; D400 - First line should end with a period |
32 | | - ; D401 - First line should be in imperative mood |
33 | | - ; S101 # use of assert |
34 | | - ; S106 - hard-coded password |
35 | | - ; E501 - line-length |
36 | | - ; E731 - assigning a lambda to a variable |
37 | 24 | *tests/*:D205,D400,D401,S101,S106,E501,E731 |
38 | 25 | */migrations/*:E501 |
39 | | - ; F403 - unable to detect undefined names |
40 | | - ; F405 - may be undefined, or defined from star imports |
41 | 26 | */settings.py:F403,F405 |
42 | 27 | */settings/*:F403,F405 |
43 | 28 | */compat.py:F401 |
0 commit comments