This repository has been archived by the owner on Nov 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
78 lines (72 loc) · 2.27 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
##################################################
# coverage #
##################################################
[coverage:run]
branch = True
parallel = true
concurrency=multiprocessing
[coverage:report]
precision = 1
show_missing = True
ignore_errors = True
exclude_lines =
pragma: no cover
raise NotImplementedError
except ImportError
def __repr__
if settings.DEBUG
if __name__ == .__main__.:
if TYPE_CHECKING:
omit =
*/migrations/*
manage.py
venv/*
fail_under=50
##################################################
# flake8 #
##################################################
[flake8]
ignore =
W503, # line break before binary operator
D100, # Missing docstring in public module
D101, # Missing docstring in public class
D102, # Missing docstring in public method
D104, # Missing docstring in public package
D106, # Missing docstring in public nested class
D200, # One-line docstring should fit on one line with quotes
D202, # No blank lines allowed after function docstring
D204, # 1 blank line required after class docstring
D205, # 1 blank line required between summary line and description
D400, # First line should end with a period
D406 # 1 blank line required before class docstring
max-line-length = 120
max-complexity = 18
select = B,C,E,F,W,T4,B9
enable-extensions = I,A,G,D
# application-import-names =
import-order-style = google
docstring-convention = numpy
exclude = migrations
##################################################
# isort #
##################################################
[isort]
multi_line_output = 2
line_length = 120
order_by_type = false
# force_to_top =
##################################################
# yapf #
##################################################
[yapf]
based_on_style = google
column_limit = 120
split_before_logical_operator = true
split_before_dot = true
coalesce_brackets = true
align_closing_bracket_with_visual_indent = true
allow_split_before_dict_value = false
blank_line_before_nested_class_or_def = true
blank_lines_around_top_level_definition = 2
[tool:pytest]
python_files = *_test.py