-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.cfg
54 lines (53 loc) · 1.96 KB
/
setup.cfg
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
# This is just for configuring Flake8.
[flake8]
max_line_length = 90
max_expressions = 10
max_arguments = 10
max_module_members = 20
max_methods = 20
max_attributes = 10
inline_quotes = double
i_control_code = False
ignore =
# WPS rules I disagree with
# Forbid underscored number names
WPS114,
# Found a too complex f-string (they are banned)
WPS237,
# Require "object" base class
WPS306,
# Forbid \\ escapes
WPS342,
# Forbid raw strings when not strictly necessary
WPS360,
# Forbid __all__
WPS410,
# Redundant checks
Q002,
# Other checks to ignore
# https://github.com/PyCQA/pydocstyle/issues/309 this one is just regular broken
D102,
# missing docstring in __init__
D107,
# https://github.com/PyCQA/flake8/issues/670 file globbing in per_file_ignores
# WPS402,
# Line break before binary operator
W503,
# Docstring stuff
DAR,
D205,
D4,
per_file_ignores =
# complexity of solvers will be high, that's what the game is like
src/ktane/vanilla.py:WPS210, WPS213, WPS219, WPS220, WPS221, WPS223, WPS226, WPS231, WPS234
src/ktane/mods/*:WPS210, WPS213, WPS221, WPS223, WPS226, WPS231, WPS232
# complexity of maze solving will be high
src/ktane/solverutils/maze.py:WPS210, WPS221, WPS232
# enums should be uppercase actually https://github.com/wemake-services/wemake-python-styleguide/issues/750
src/ktane/directors.py:WPS115
# mission scripts are not actually modules
missions/*:D100, F403, F405, WPS102, WPS347
# complexity of tests will be high (also allow local imports)
test/*:S101, WPS214, WPS218, WPS221, WPS300
# https://github.com/PyCQA/flake8/issues/670 overrides
test/mocks.py:D107, WPS115, WPS420,,S101, WPS214, WPS218, WPS221