|
| 1 | +[flake8] |
| 2 | +max-complexity = 6 |
| 3 | +inline-quotes = double |
| 4 | +max-line-length = 88 |
| 5 | +extend-ignore = E203 |
| 6 | +docstring_style=sphinx |
| 7 | + |
| 8 | +ignore = |
| 9 | + ; Found a line that starts with a dot |
| 10 | + WPS348, |
| 11 | + ; Found overly complex type annotation |
| 12 | + WPS234, |
| 13 | + ; `noqa` comments overuse )))) |
| 14 | + WPS402, |
| 15 | + ; Found `%` string formatting |
| 16 | + WPS323, |
| 17 | + ; Found block variable overlap. |
| 18 | + WPS440, |
| 19 | + ; Found multi-line function type annotation |
| 20 | + WPS320, |
| 21 | + ; Found statement that has no effect |
| 22 | + WPS428, |
| 23 | + ; Found wrong variable name |
| 24 | + WPS110, |
| 25 | + ; Found unpythonic getter or setter |
| 26 | + WPS615, |
| 27 | + ; Found `f` string |
| 28 | + WPS305, |
| 29 | + ; Missing docstring in public module |
| 30 | + D100, |
| 31 | + ; Missing docstring in magic method |
| 32 | + D105, |
| 33 | + ; Missing docstring in __init__ |
| 34 | + D107, |
| 35 | + ; Found class without a base class |
| 36 | + WPS306, |
| 37 | + ; Missing docstring in public nested class |
| 38 | + D106, |
| 39 | + ; First line should be in imperative mood |
| 40 | + D401, |
| 41 | + ; Found `__init__.py` module with logic |
| 42 | + WPS412, |
| 43 | + ; Found implicit string concatenation |
| 44 | + WPS326, |
| 45 | + ; Found string constant over-use |
| 46 | + WPS226, |
| 47 | + ; Found upper-case constant in a class |
| 48 | + WPS115, |
| 49 | + ; Found nested function |
| 50 | + WPS430, |
| 51 | + ; Found using `@staticmethod` |
| 52 | + WPS602, |
| 53 | + ; Found method without arguments |
| 54 | + WPS605, |
| 55 | + ; Found overused expression |
| 56 | + WPS204, |
| 57 | + ; Found too many module members |
| 58 | + WPS202, |
| 59 | + ; Found too high module cognitive complexity |
| 60 | + WPS232, |
| 61 | + ; line break before binary operator |
| 62 | + W503, |
| 63 | + ; Found module with too many imports |
| 64 | + WPS201, |
| 65 | + ; Found vague import that may cause confusion: X |
| 66 | + WPS347, |
| 67 | + ; Inline strong start-string without end-string. |
| 68 | + RST210, |
| 69 | + ; subprocess call with shell=True seems safe, but may be changed in the future. |
| 70 | + S602, |
| 71 | + ; Starting a process with a partial executable path. |
| 72 | + S607, |
| 73 | + ; Consider possible security implications associated with subprocess module. |
| 74 | + S404, |
| 75 | + ; Found nested class |
| 76 | + WPS431, |
| 77 | + ; Found wrong module name |
| 78 | + WPS100, |
| 79 | + ; Found too many methods |
| 80 | + WPS214, |
| 81 | + ; Found too long ``try`` body |
| 82 | + WPS229, |
| 83 | + ; Found function with too much cognitive complexity |
| 84 | + WPS231, |
| 85 | + ; Found too deep nesting |
| 86 | + WPS220, |
| 87 | + ; Found line with high Jones Complexity |
| 88 | + WPS221, |
| 89 | + ; function name should be lowercase |
| 90 | + N802, |
| 91 | + ; Do not perform function calls in argument defaults. |
| 92 | + B008, |
| 93 | + ; Found protected attribute usage |
| 94 | + WPS437, |
| 95 | + |
| 96 | + ; all init files |
| 97 | + __init__.py: |
| 98 | + ; ignore not used imports |
| 99 | + F401, |
| 100 | + ; ignore import with wildcard |
| 101 | + F403, |
| 102 | + ; Found wrong metadata variable |
| 103 | + WPS410, |
| 104 | + |
| 105 | +per-file-ignores = |
| 106 | + ; all tests |
| 107 | + test_*.py,tests.py,tests_*.py,*/tests/*: |
| 108 | + ; Use of assert detected |
| 109 | + S101, |
| 110 | + ; Found magic number |
| 111 | + WPS432, |
| 112 | + ; Missing parameter(s) in Docstring |
| 113 | + DAR101, |
| 114 | + ; Found too short name |
| 115 | + WPS111, |
| 116 | + ; Found complex default value |
| 117 | + WPS404, |
| 118 | + |
| 119 | +exclude = |
| 120 | + ./.git, |
| 121 | + ./venv, |
| 122 | + ./cached_venv, |
| 123 | + ./var, |
0 commit comments