|
| 1 | +[flake8] |
| 2 | +max-complexity = 6 |
| 3 | +inline-quotes = double |
| 4 | +max-line-length = 88 |
| 5 | +extend-ignore = E203 |
| 6 | +docstring_style=sphinx |
| 7 | +max-cognitive-score=20 |
| 8 | +max-arguments=8 |
| 9 | +max-line-complexity=20 |
| 10 | + |
| 11 | +ignore = |
| 12 | + ; Found statement that has no effect |
| 13 | + WPS428, |
| 14 | + ; Found overly complex annotation |
| 15 | + WPS234, |
| 16 | + ; Found multi-line function type annotation |
| 17 | + WPS320, |
| 18 | + ; Found too deep nesting |
| 19 | + WPS220, |
| 20 | + ; Found `%` string formatting |
| 21 | + WPS323, |
| 22 | + ; Found `f` string |
| 23 | + WPS305, |
| 24 | + ; Missing docstring in public module |
| 25 | + D100, |
| 26 | + ; Missing docstring in magic method |
| 27 | + D105, |
| 28 | + ; Missing docstring in __init__ |
| 29 | + D107, |
| 30 | + ; Found `__init__.py` module with logic |
| 31 | + WPS412, |
| 32 | + ; Found class without a base class |
| 33 | + WPS306, |
| 34 | + ; Missing docstring in public nested class |
| 35 | + D106, |
| 36 | + ; First line should be in imperative mood |
| 37 | + D401, |
| 38 | + ; Found wrong variable name |
| 39 | + WPS110, |
| 40 | + ; Found `__init__.py` module with logic |
| 41 | + WPS326, |
| 42 | + ; Found string constant over-use |
| 43 | + WPS226, |
| 44 | + ; Found upper-case constant in a class |
| 45 | + WPS115, |
| 46 | + ; Found nested function |
| 47 | + WPS602, |
| 48 | + ; Found method without arguments |
| 49 | + WPS605, |
| 50 | + ; Found overused expression |
| 51 | + WPS204, |
| 52 | + ; Found too many module members |
| 53 | + WPS202, |
| 54 | + ; Found too high module cognitive complexity |
| 55 | + WPS232, |
| 56 | + ; line break before binary operator |
| 57 | + W503, |
| 58 | + ; Found module with too many imports |
| 59 | + WPS201, |
| 60 | + ; Inline strong start-string without end-string. |
| 61 | + RST210, |
| 62 | + ; Found nested class |
| 63 | + WPS431, |
| 64 | + ; Found wrong module name |
| 65 | + WPS100, |
| 66 | + ; Found too many methods |
| 67 | + WPS214, |
| 68 | + ; Found too long ``try`` body |
| 69 | + WPS229, |
| 70 | + ; Found unpythonic getter or setter |
| 71 | + WPS615, |
| 72 | + ; Found a line that starts with a dot |
| 73 | + WPS348, |
| 74 | + ; Found complex default value (for dependency injection) |
| 75 | + WPS404, |
| 76 | + ; not perform function calls in argument defaults (for dependency injection) |
| 77 | + B008, |
| 78 | + ; Model should define verbose_name in its Meta inner class |
| 79 | + DJ10, |
| 80 | + ; Model should define verbose_name_plural in its Meta inner class |
| 81 | + DJ11, |
| 82 | + ; Found mutable module constant. |
| 83 | + WPS407, |
| 84 | + ; Found walrus operator |
| 85 | + WPS332 |
| 86 | + ; Found a too complex `f` string |
| 87 | + WPS237 |
| 88 | + ; Consider possible security implications associated with pickle module |
| 89 | + ; Pickle and modules that wrap it can be unsafe when used to deserialize untrusted data, possible security issue |
| 90 | + S403, S301 |
| 91 | + |
| 92 | +per-file-ignores = |
| 93 | + ; all tests |
| 94 | + test_*.py,tests.py,tests_*.py,*/tests/*,conftest.py: |
| 95 | + ; Use of assert detected |
| 96 | + S101, |
| 97 | + ; Found outer scope names shadowing |
| 98 | + WPS442, |
| 99 | + ; Found too many local variables |
| 100 | + WPS210, |
| 101 | + ; Found magic number |
| 102 | + WPS432, |
| 103 | + ; Missing parameter(s) in Docstring |
| 104 | + DAR101, |
| 105 | + ; Found too many arguments |
| 106 | + WPS211, |
| 107 | + |
| 108 | + ; all init files |
| 109 | + __init__.py: |
| 110 | + ; ignore not used imports |
| 111 | + F401, |
| 112 | + ; ignore import with wildcard |
| 113 | + F403, |
| 114 | + ; Found wrong metadata variable |
| 115 | + WPS410, |
| 116 | + |
| 117 | +exclude = |
| 118 | + ./.cache, |
| 119 | + ./.git, |
| 120 | + ./.idea, |
| 121 | + ./.mypy_cache, |
| 122 | + ./.pytest_cache, |
| 123 | + ./.venv, |
| 124 | + ./venv, |
| 125 | + ./env, |
| 126 | + ./cached_venv, |
| 127 | + ./docs, |
| 128 | + ./deploy, |
| 129 | + ./var, |
| 130 | + ./.vscode, |
| 131 | + *migrations*, |
0 commit comments