-
Notifications
You must be signed in to change notification settings - Fork 0
/
peluche.ini.dist
142 lines (120 loc) · 3.66 KB
/
peluche.ini.dist
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
[peluche]
# the formatter to use to report the progress.
formatter = dot
# whether or not to exit at the first error encountered.
strict = False
# the number of processes to use when analyzing.
processes = -1
# the extensions/folders to take in account when searching files to analyze.
include = .py,
# the extensions/folders to ignore when searching files to analyze.
exclude = .git/,
[operator_spacing]
description = Checks for correct spacing around operators.
enabled = True
[comma_spacing]
description = Checks the compliance with spacing rules around commas.
enabled = True
[comment_spacing]
description = Checks the compliance with spacing rules before comments.
enabled = True
[parentheses_spacing]
description = Checks for correct spacing between parentheses.
enabled = True
[module_length]
description = Checks the maximum length of modules.
# the maximum length allowed.
max = 225
# whether or not to ignore docstrings.
ignore-docstrings = True
# whether or not to ignore comments.
ignore-comments = True
enabled = True
[class_length]
description = Checks the maximum length of classes.
# the maximum length allowed.
max = 200
# whether or not to ignore docstrings.
ignore-docstrings = True
# whether or not to ignore comments.
ignore-comments = True
enabled = True
[function_length]
description = Checks the maximum length of functions.
# the maximum length allowed.
max = 25
# whether or not to ignore docstrings.
ignore-docstrings = True
# whether or not to ignore comments.
ignore-comments = True
enabled = True
[line_length]
description = Checks the maximum line length.
# the maximum length allowed.
max = 120
# whether or not to ignore docstrings.
ignore-docstrings = True
# whether or not to ignore comments.
ignore-comments = True
# whether or not to ignore uris.
ignore-uris = True
enabled = True
[function_parameters_count]
description = Checks the maximum number of parameters allowed.
# the maximum number of parameters allowed.
max = 5
# whether or not to ignore keyword arguments.
ignore-kwargs = False
enabled = True
[lambda_parameters_count]
description = Checks the maximum number of parameters allowed.
# the maximum number of parameters allowed.
max = 3
# whether or not to ignore keyword arguments.
ignore-kwargs = False
enabled = True
[cyclomatic_complexity]
description = Checks the maximum cyclomatic complexity of functions.
# the maximum cyclomatic complexity.
max = 10
enabled = True
[block_nesting]
description = Checks the maximum nesting of code blocks.
# the maximum nesting allowed.
max = 3
enabled = True
[enumeration_refactoring]
description = Checks for refactoring of non-optimized enumerations.
enabled = True
[membership_testing_refactoring]
description = Checks for refactoring of non-optimized membership testing.
enabled = True
[class_naming]
description = Checks the compliance of class names with the naming convention.
# the naming style to enforce.
style = pascal_case
enabled = True
[function_naming]
description = Checks the compliance of function names with the naming convention.
# the naming style to enforce.
format = snake_case
enabled = True
[not_in_ordering]
description = Checks for compliance with the `not in` comparison convention.
enabled = True
[class_docstring]
description = Checks the presence of docstring for classes.
enabled = True
[function_docstring]
description = Checks the presence of docstring for functions.
enabled = True
[function_newlines]
description = Checks the number of newlines after functions.
# the maximum amount of newlines after a function.
count = 2
enabled = True
[decorator_newlines]
description = Checks the number of newlines after decorators.
# the maximum amount of newlines after a decorator.
count = 1
enabled = True