-
Notifications
You must be signed in to change notification settings - Fork 32
/
.pylintrc
54 lines (51 loc) · 1.45 KB
/
.pylintrc
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
[MASTER]
extension-pkg-whitelist=lxml,pydantic
ignored-modules=cv2,tesserocr,ocrd_models.ocrd_page_generateds
ignore-paths=ocrd_page_generateds.py
ignore-patterns=.*generateds.*
[MESSAGES CONTROL]
disable =
fixme,
line-too-long,
consider-using-f-string,
logging-fstring-interpolation,
trailing-whitespace,
logging-not-lazy,
inconsistent-return-statements,
disallowed-name,
invalid-name,
line-too-long,
missing-docstring,
wrong-import-order,
too-many-nested-blocks,
superfluous-parens,
too-few-public-methods,
wrong-import-order,
too-many-arguments,
too-many-branches,
too-many-instance-attributes,
ungrouped-imports,
useless-object-inheritance,
useless-import-alias,
no-else-return,
logging-not-lazy
[DESIGN]
# Maximum number of arguments for function / method
max-args=12
# Maximum number of locals for function / method body
max-locals=30
# Maximum number of return / yield for function / method body
max-returns=12
# Maximum number of branch for function / method body
max-branches=30
# Maximum number of statements in function / method body
max-statements=60
# Maximum number of parents for a class (see R0901).
max-parents=7
# Maximum number of attributes for a class (see R0902).
max-attributes=20
# Minimum number of public methods for a class (see R0903).
min-public-methods=0
# Maximum number of public methods for a class (see R0904).
max-public-methods=20
# vim: ft=jproperties