Debian Codegraph @

pylintrc

raw
1 [MASTER]
2 # Pickle collected data for later comparisons.
3 persistent=no
4
5 # List of plugins (as comma separated values of python modules names) to load,
6 # usually to register additional checkers.
7 # FIXME: has to be specified on the command line otherwise pylint fails with
8 # DuplicateSectionError for the IPA section
9 #load-plugins=pylint_plugins
10
11 # A list of packages with safe C extensions to load
12 extension-pkg-allow-list=
13 _ldap,
14 cryptography,
15 gssapi,
16 lxml.etree,
17 pysss_murmur,
18
19 # We want to ignore freeipa-webui, linting is handled separately there
20 ignore=freeipa-webui
21
22 [CLASSES]
23
24 # List of valid names for the first argument in a metaclass class method.
25 # This can be removed after upgrading to pylint 2.0
26 valid-metaclass-classmethod-first-arg=cls
27
28 [MESSAGES CONTROL]
29
30 enable=
31 all,
32 python3,
33 useless-suppression,
34
35 disable=
36 bad-inline-option,
37 c-extension-no-member,
38 deprecated-pragma,
39 file-ignored,
40 locally-disabled,
41 raw-checker-failed,
42 suppressed-message,
43 use-symbolic-message-instead,
44 duplicate-code,
45 interface-not-implemented,
46 no-self-use,
47 redefined-variable-type,
48 too-few-public-methods,
49 too-many-ancestors,
50 too-many-arguments,
51 too-many-boolean-expressions,
52 too-many-branches,
53 too-many-instance-attributes,
54 too-many-locals,
55 too-many-nested-blocks,
56 too-many-positional-arguments,
57 too-many-public-methods,
58 too-many-return-statements,
59 too-many-statements,
60 abstract-method,
61 anomalous-backslash-in-string,
62 arguments-differ,
63 attribute-defined-outside-init,
64 bad-builtin,
65 bad-indentation,
66 broad-except,
67 dangerous-default-value,
68 eval-used,
69 exec-used,
70 fixme,
71 global-statement,
72 no-init,
73 pointless-string-statement,
74 protected-access,
75 redefined-builtin,
76 redefined-outer-name,
77 super-init-not-called,
78 undefined-loop-variable,
79 unnecessary-lambda,
80 unused-argument,
81 useless-else-on-loop,
82 bad-continuation,
83 bad-whitespace,
84 blacklisted-name,
85 invalid-name,
86 line-too-long,
87 missing-docstring,
88 multiple-statements,
89 superfluous-parens,
90 too-many-lines,
91 unidiomatic-typecheck,
92 no-absolute-import,
93 wrong-import-order,
94 ungrouped-imports,
95 wrong-import-position,
96 unsubscriptable-object,
97 unsupported-membership-test,
98 not-an-iterable,
99 singleton-comparison,
100 misplaced-comparison-constant,
101 not-a-mapping,
102 singleton-comparison,
103 len-as-condition, # new in pylint 1.7
104 no-else-return, # new in pylint 1.7
105 single-string-used-for-slots, # new in pylint 1.7
106 useless-super-delegation, # new in pylint 1.7
107 redefined-argument-from-local, # new in pylint 1.7
108 consider-merging-isinstance, # new in pylint 1.7
109 bad-option-value, # required to support upgrade to pylint 2.0
110 assignment-from-no-return, # new in pylint 2.0
111 keyword-arg-before-vararg, # pylint 2.0, remove after dropping Python 2
112 consider-using-enumerate, # pylint 2.1, clean up tests later
113 no-else-raise, # python 2.4.0
114 import-outside-toplevel, # pylint 2.4.2
115 f-string-without-interpolation, # pylint 2.5.0, bare f-strings are ok
116 super-with-arguments, # pylint 2.6.0, zero-length form is syntactic sugar
117 raise-missing-from, # pylint 2.6.0, implicit exception chaining is ok
118 consider-using-with, # pylint 2.8.0, contextmanager is not mandatory
119 consider-using-max-builtin, # pylint 2.8.0, can be more readable
120 consider-using-min-builtin, # pylint 2.8.0, can be more readable
121 redundant-u-string-prefix, # pylint 2.10.0, too many unessential changes
122 consider-using-f-string, # pylint 2.11.0, format can be more readable
123 use-dict-literal, # pylint 2.10.0 dict vs {}
124 use-list-literal, # pylint 2.10.0 list() vs []
125 unspecified-encoding, # pylint 2.10.0, ASCII or UTF8 and platform-specific
126 use-implicit-booleaness-not-comparison, # pylint 2.12.2, weak comparison
127 use-implicit-booleaness-not-comparison-to-string,
128 use-implicit-booleaness-not-comparison-to-zero,
129 broad-exception-raised,
130 possibly-used-before-assignment,
131 use-yield-from
132
133
134 [REPORTS]
135
136 # Set the output format. Available formats are text, parseable, colorized, msvs
137 # (visual studio) and html. You can also give a reporter class, eg
138 # mypackage.mymodule.MyReporterClass.
139 output-format=colorized
140
141 # Tells whether to display a full report or only the messages
142 reports=no
143
144 # Template used to display messages. This is a python new-style format string
145 # used to format the message information. See doc for all details
146 msg-template='{path}:{line}: [{msg_id}({symbol}), {obj}] {msg})'
147
148
149 [VARIABLES]
150 dummy-variables-rgx=(_.+|unused)
151
152 [IPA]
153 forbidden-imports=
154 client/:ipaserver,
155 ipaclient/:ipaclient.install:ipalib.install:ipaserver,
156 ipaclient/install/:ipaserver,
157 ipalib/:ipaclient.install:ipalib.install:ipaserver,
158 ipalib/install/:ipaserver,
159 ipaplatform/:ipaclient:ipalib:ipaserver,
160 ipapython/:ipaclient:ipalib:ipaserver
161 ipatests/pytest_ipa:ipaserver:ipaclient.install:ipalib.install
162 ipatests/test_integration:ipaserver,
163 ipatests/i18n.py:ipapython