forked from fsfe/reuse-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pylintrc
125 lines (88 loc) · 2.21 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
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
# SPDX-FileCopyrightText: 2018 Free Software Foundation Europe e.V. <https://fsfe.org>
# SPDX-FileCopyrightText: 2022 Florian Snow <[email protected]>
#
# SPDX-License-Identifier: GPL-3.0-or-later
[MASTER]
jobs=0
[MESSAGES CONTROL]
disable=duplicate-code,
logging-fstring-interpolation,
implicit-str-concat
enable=useless-suppression
[REPORTS]
output-format=text
reports=no
[FORMAT]
expected-line-ending-format=LF
ignore-long-lines=^\s*(# )?<?https?://\S+>?$|^# SPDX-.*$
indent-after-paren=4
indent-string=' '
max-line-length=80
single-line-if-stmt=no
[REFACTORING]
max-nested-blocks=4
never-returning-functions=sys.exit
[BASIC]
argument-naming-style=snake_case
attr-naming-style=snake_case
bad-names=foo,
bar,
baz,
toto,
tutu,
tata
class-attribute-rgx=^[a-z0-9_]*$|^[A-Z0-9_]*$
class-naming-style=PascalCase
const-naming-style=UPPER_CASE
docstring-min-length=3
function-naming-style=snake_case
good-names=i,j,k,ex,Run,_,fp
inlinevar-naming-style=snake_case
method-naming-style=snake_case
module-naming-style=snake_case
variable-naming-style=snake_case
[MISCELLANEOUS]
notes=FIXME,XXX
[SIMILARITIES]
ignore-comments=yes
ignore-docstrings=yes
ignore-imports=yes
min-similarity-lines=4
[SPELLING]
max-spelling-suggestions=4
spelling-store-unknown-words=no
[STRING]
check-quote-consistency=yes
check-str-concat-over-line-jumps=yes
[DESIGN]
max-args=6
max-attributes=10
max-bool-expr=5
# we probably want to reduce this a bit, after some refactoring
max-branches=12
max-locals=15
max-parents=7
max-public-methods=20
max-returns=6
max-statements=50
min-public-methods=1
[IMPORTS]
allow-wildcard-with-all=no
analyse-fallback-blocks=no
deprecated-modules=optparse,tkinter.tix,distutils
known-third-party=enchant
[CLASSES]
defining-attr-methods=__init__,
__new__,
setUp,
__post_init__
exclude-protected=_asdict,
_fields,
_replace,
_source,
_make
valid-classmethod-first-arg=cls
valid-metaclass-classmethod-first-arg=cls
[EXCEPTIONS]
overgeneral-exceptions=builtins.BaseException,
builtins.Exception