|
| 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 too deep nesting |
| 10 | + WPS220, |
| 11 | + ; Found `%` string formatting |
| 12 | + WPS323, |
| 13 | + ; Found `f` string |
| 14 | + WPS305, |
| 15 | + ; Missing docstring in public module |
| 16 | + D100, |
| 17 | + ; Missing docstring in magic method |
| 18 | + D105, |
| 19 | + ; Missing docstring in __init__ |
| 20 | + D107, |
| 21 | + ; Found class without a base class |
| 22 | + WPS306, |
| 23 | + ; Missing docstring in public nested class |
| 24 | + D106, |
| 25 | + ; First line should be in imperative mood |
| 26 | + D401, |
| 27 | + ; Found `__init__.py` module with logic |
| 28 | + WPS412, |
| 29 | + ; Found implicit string concatenation |
| 30 | + WPS326, |
| 31 | + ; Found string constant over-use |
| 32 | + WPS226, |
| 33 | + ; Found upper-case constant in a class |
| 34 | + WPS115, |
| 35 | + ; Found nested function |
| 36 | + WPS430, |
| 37 | + ; Found using `@staticmethod` |
| 38 | + WPS602, |
| 39 | + ; Found method without arguments |
| 40 | + WPS605, |
| 41 | + ; Found overused expression |
| 42 | + WPS204, |
| 43 | + ; Found too many module members |
| 44 | + WPS202, |
| 45 | + ; Found too high module cognitive complexity |
| 46 | + WPS232, |
| 47 | + ; line break before binary operator |
| 48 | + W503, |
| 49 | + ; Found module with too many imports |
| 50 | + WPS201, |
| 51 | + ; Found vague import that may cause confusion: X |
| 52 | + WPS347, |
| 53 | + ; Inline strong start-string without end-string. |
| 54 | + RST210, |
| 55 | + ; subprocess call with shell=True seems safe, but may be changed in the future. |
| 56 | + S602, |
| 57 | + ; Starting a process with a partial executable path. |
| 58 | + S607, |
| 59 | + ; Consider possible security implications associated with subprocess module. |
| 60 | + S404, |
| 61 | + ; Found nested class |
| 62 | + WPS431, |
| 63 | + ; Found wrong module name |
| 64 | + WPS100, |
| 65 | + ; Found too many methods |
| 66 | + WPS214, |
| 67 | + ; Found too long ``try`` body |
| 68 | + WPS229, |
| 69 | + ; Found function with too much cognitive complexity |
| 70 | + WPS231, |
| 71 | + |
| 72 | + ; all init files |
| 73 | + __init__.py: |
| 74 | + ; ignore not used imports |
| 75 | + F401, |
| 76 | + ; ignore import with wildcard |
| 77 | + F403, |
| 78 | + ; Found wrong metadata variable |
| 79 | + WPS410, |
| 80 | + |
| 81 | +per-file-ignores = |
| 82 | + ; all tests |
| 83 | + test_*.py,tests.py,tests_*.py,*/tests/*: |
| 84 | + ; Use of assert detected |
| 85 | + S101, |
| 86 | + |
| 87 | +exclude = |
| 88 | + ./.git, |
| 89 | + ./venv, |
| 90 | + ./cached_venv, |
| 91 | + ./var, |
0 commit comments