-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
60 lines (55 loc) · 1.67 KB
/
pyproject.toml
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
55
56
57
58
59
60
[tool.isort]
line_length = 200
[tool.flake8]
ignore = [
'E402', # module level import not at top of file
# let yapf handle these
'E501', # line too long
'E251', # Unexpected spaces around keyword / parameter equals
'E122', # continuation line missing indentation or outdented
'E123', # closing bracket does not match indentation of opening bracket's line
'E124', # closing bracket does not match visual indentation
'E126', # continuation line over-indented for hanging indent
]
count = true
statistics = true
max-complexity = 25
max-line-length = 200
exclude = [
'migrations',
'__pycache__',
'manage.py',
'settings.py',
'env',
'.env',
'**/venv/**',
'**/Lib/**',
'**/Scripts/**',
'__init__.py',
]
[tool.yapf]
# https://github.com/google/yapf#knobs
based_on_style = 'google'
indent_width = 4
ALIGN_CLOSING_BRACKET_WITH_VISUAL_INDENT = false
ALLOW_MULTILINE_LAMBDAS = true
ALLOW_MULTILINE_DICTIONARY_KEYS = false
ALLOW_SPLIT_BEFORE_DEFAULT_OR_NAMED_ASSIGNS = true
ALLOW_SPLIT_BEFORE_DICT_VALUE = true
ARITHMETIC_PRECEDENCE_INDICATION = true
BLANK_LINE_BEFORE_NESTED_CLASS_OR_DEF = true
BLANK_LINE_BEFORE_MODULE_DOCSTRING = false
BLANK_LINE_BEFORE_CLASS_DOCSTRING = false
BLANK_LINES_AROUND_TOP_LEVEL_DEFINITION = 2
BLANK_LINES_BETWEEN_TOP_LEVEL_IMPORTS_AND_VARIABLES = 2
COALESCE_BRACKETS = false
COLUMN_LIMIT = 200
CONTINUATION_ALIGN_STYLE = 'SPACE'
DEDENT_CLOSING_BRACKETS = true
EACH_DICT_ENTRY_ON_SEPARATE_LINE = true
INDENT_DICTIONARY_VALUE = true
INDENT_CLOSING_BRACKETS = false
SPACES_BEFORE_COMMENT = 2
SPLIT_ALL_COMMA_SEPARATED_VALUES = false
[tool.yapfignore]
ignore_patterns = ["**/venv/**", "**/Lib/**", "**/Scripts/**"]