Debian Codegraph @

.testing.pylintrc

raw
1 [MASTER]
2
3 # Specify a configuration file.
4 rcfile=.pylintrc
5
6 # Pickle collected data for later comparisons.
7 persistent=no
8
9 # List of plugins (as comma separated values of python modules names) to load,
10 # usually to register additional checkers.
11 load-plugins=saltpylint.pep8,
12 saltpylint.pep263,
13 saltpylint.strings,
14 saltpylint.fileperms,
15 saltpylint.py3modernize,
16 saltpylint.smartup,
17 saltpylint.minpyver
18
19
20 # Fileperms Lint Plugin Settings
21 fileperms-default = 0644
22 fileperms-ignore-paths = setup.py
23
24
25 # Py3 Modernize PyLint Plugin Settings
26 modernize-nofix = libmodernize.fixes.fix_dict_six
27
28
29 # Minimum Python Version To Enforce
30 minimum-python-version = 3.4
31
32
33 [MESSAGES CONTROL]
34
35 # Only show warnings with the listed confidence levels. Leave empty to show
36 # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
37 confidence=
38
39 # Enable the message, report, category or checker with the given id(s). You can
40 # either give multiple identifier separated by comma (,) or put this option
41 # multiple time. See also the "--disable" option for examples.
42 #enable=
43
44 # Disable the message, report, category or checker with the given id(s). You
45 # can either give multiple identifiers separated by comma (,) or put this
46 # option multiple times (only on the command line, not in the configuration
47 # file where it should appear only once).You can also use "--disable=all" to
48 # disable everything first and then reenable specific checks. For example, if
49 # you want to run only the similarities checker, you can use "--disable=all
50 # --enable=similarities". If you want to run only the classes checker, but have
51 # no Warning level messages displayed, use"--disable=all --enable=classes
52 # --disable=W"
53 #disable=
54 disable=R,
55 I0011,
56 I0012,
57 I0013,
58 E1101,
59 E1103,
60 C0102,
61 C0103,
62 C0111,
63 C0203,
64 C0204,
65 C0301,
66 C0302,
67 C0330,
68 W0110,
69 W0122,
70 W0142,
71 W0201,
72 W0212,
73 W0404,
74 W0511,
75 W0603,
76 W0612,
77 W0613,
78 W0621,
79 W0622,
80 W0631,
81 W0704,
82 W1202,
83 W1307,
84 F0220,
85 F0401,
86 E8501,
87 E8116,
88 E8121,
89 E8122,
90 E8123,
91 E8124,
92 E8125,
93 E8126,
94 E8127,
95 E8128,
96 E8129,
97 E8131,
98 E8265,
99 E8266,
100 E8402,
101 E8731
102
103 # Disabled:
104 # R* [refactoring suggestions & reports]
105 # I0011 (locally-disabling)
106 # I0012 (locally-enabling)
107 # I0013 (file-ignored)
108 # E1101 (no-member) [pylint isn't smart enough]
109 # E1103 (maybe-no-member)
110 # C0102 (blacklisted-name) [because it activates C0103 too]
111 # C0103 (invalid-name)
112 # C0111 (missing-docstring)
113 # C0203 (bad-mcs-method-argument)
114 # C0204 (bad-mcs-classmethod-argument)
115 # C0301 (line-too-long)
116 # C0302 (too-many-lines)
117 # C0330 (bad-continuation)
118 # W0110 (deprecated-lambda)
119 # W0122 (exec-statement)
120 # W0142 (star-args)
121 # W0201 (attribute-defined-outside-init) [done in several places in the codebase]
122 # W0212 (protected-access)
123 # W0404 (reimported) [done intentionally for legit reasons]
124 # W0511 (fixme) [several outstanding instances currently in the codebase]
125 # W0603 (global-statement)
126 # W0612 (unused-variable) [unused return values]
127 # W0613 (unused-argument)
128 # W0621 (redefined-outer-name)
129 # W0622 (redefined-builtin) [many parameter names shadow builtins]
130 # W0631 (undefined-loop-variable) [~3 instances, seem to be okay]
131 # W0704 (pointless-except) [misnomer; "ignores the exception" rather than "pointless"]
132 # F0220 (unresolved-interface)
133 # F0401 (import-error)
134 # W1202 (logging-format-interpolation) Use % formatting in logging functions but pass the % parameters as arguments
135 # W1307 (invalid-format-index) Using invalid lookup key '%s' in format specifier "0['%s']"
136 #
137 # E8116 PEP8 E116: unexpected indentation (comment)
138 # E812* All PEP8 E12*
139 # E8265 PEP8 E265 - block comment should start with "# "
140 # E8266 PEP8 E266 - too many leading '#' for block comment
141 # E8501 PEP8 line too long
142 # E8402 module level import not at top of file
143 # E8731 do not assign a lambda expression, use a def
144
145
146 [REPORTS]
147
148 # Tells whether to display a full report or only the messages
149 reports=no
150
151 # Template used to display messages. This is a python new-style format string
152 # used to format the message information. See doc for all details
153 msg-template='{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}'