forked from oamg/convert2rhel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pylintrc
98 lines (90 loc) · 2.26 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
[MASTER]
ignore=
[BASIC]
# Regular expression matching correct function names
function-rgx=[a-z_][a-z0-9_]{2,50}$
[MESSAGES CONTROL]
disable=
# do not warn about pylint checks being disabled through comments in the code
locally-disabled,
# These are false positives because they refer to features which are unusable
# on the versions of python we support.
redundant-u-string-prefix, # Python 3.0+
consider-using-f-string, # Python 3.6+
use-yield-from, # Python 3+
# These are our current failures 2023-01-11. We can go through them and either
# fix them or add a comment to say why we are leaving it disabled.
anomalous-backslash-in-string,
arguments-renamed,
attribute-defined-outside-init,
broad-except,
cyclic-import,
duplicate-code,
empty-docstring,
expression-not-assigned,
f-string-without-interpolation,
fixme,
function-redefined,
global-variable-not-assigned,
implicit-str-concat,
import-error,
import-outside-toplevel,
inconsistent-return-statements,
invalid-name,
line-too-long,
logging-format-interpolation,
logging-fstring-interpolation,
logging-not-lazy,
missing-class-docstring,
missing-function-docstring,
missing-module-docstring,
no-else-break,
no-else-raise,
no-else-return,
no-member,
no-self-use,
no-value-for-parameter,
pointless-statement,
protected-access,
raise-missing-from,
redefined-builtin,
redefined-outer-name,
redundant-unittest-assert,
reimported,
simplifiable-if-expression,
simplifiable-if-statement,
singleton-comparison,
superfluous-parens,
super-init-not-called,
super-with-arguments,
suppressed-message,
too-few-public-methods,
too-many-arguments,
too-many-branches,
too-many-instance-attributes,
too-many-lines,
too-many-locals,
too-many-nested-blocks,
too-many-public-methods,
too-many-statements,
try-except-raise,
ungrouped-imports,
unknown-option-value,
unnecessary-dunder-call,
unnecessary-lambda,
unnecessary-pass,
unspecified-encoding,
unused-argument,
unused-import,
unused-variable,
useless-option-value,
useless-return,
useless-suppression,
use-symbolic-message-instead,
wrong-import-order,
wrong-import-position
[REPORTS]
msg-template='[{msg_id} {symbol}] {msg} File: {path}, line {line}, in {obj}'
[FORMAT]
# Maximum number of characters on a single line.
max-line-length=120