| 1 |
[MASTER] |
| 2 |
|
| 3 |
# Specify a configuration file. |
| 4 |
#rcfile= |
| 5 |
|
| 6 |
# Python code to execute, usually for sys.path manipulation such as |
| 7 |
# pygtk.require(). |
| 8 |
#init-hook= |
| 9 |
|
| 10 |
# Add files or directories to the blacklist. They should be base names, not |
| 11 |
# paths. |
| 12 |
ignore=CVS |
| 13 |
|
| 14 |
# Pickle collected data for later comparisons. |
| 15 |
persistent=yes |
| 16 |
|
| 17 |
# List of plugins (as comma separated values of python modules names) to load, |
| 18 |
# usually to register additional checkers. |
| 19 |
load-plugins= |
| 20 |
|
| 21 |
# Use multiple processes to speed up Pylint. |
| 22 |
jobs=1 |
| 23 |
|
| 24 |
# Allow loading of arbitrary C extensions. Extensions are imported into the |
| 25 |
# active Python interpreter and may run arbitrary code. |
| 26 |
unsafe-load-any-extension=no |
| 27 |
|
| 28 |
# A comma-separated list of package or module names from where C extensions may |
| 29 |
# be loaded. Extensions are loading into the active Python interpreter and may |
| 30 |
# run arbitrary code |
| 31 |
extension-pkg-whitelist= |
| 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=suppressed-message,useless-suppression,no-else-return |
| 54 |
|
| 55 |
|
| 56 |
[REPORTS] |
| 57 |
|
| 58 |
# Set the output format. Available formats are text, parseable, colorized, msvs |
| 59 |
# (visual studio) and html. You can also give a reporter class, eg |
| 60 |
# mypackage.mymodule.MyReporterClass. |
| 61 |
output-format=text |
| 62 |
|
| 63 |
# Tells whether to display a full report or only the messages |
| 64 |
reports=yes |
| 65 |
|
| 66 |
# Python expression which should return a note less than 10 (10 is the highest |
| 67 |
# note). You have access to the variables errors warning, statement which |
| 68 |
# respectively contain the number of errors / warnings messages and the total |
| 69 |
# number of statements analyzed. This is used by the global evaluation report |
| 70 |
# (RP0004). |
| 71 |
evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) |
| 72 |
|
| 73 |
# Template used to display messages. This is a python new-style format string |
| 74 |
# used to format the message information. See doc for all details |
| 75 |
#msg-template= |
| 76 |
|
| 77 |
|
| 78 |
[BASIC] |
| 79 |
|
| 80 |
# Good variable names which should always be accepted, separated by a comma |
| 81 |
good-names=i,j,k,ex,Run,_,db |
| 82 |
|
| 83 |
# Bad variable names which should always be refused, separated by a comma |
| 84 |
bad-names=foo,bar,baz,toto,tutu,tata |
| 85 |
|
| 86 |
# Colon-delimited sets of names that determine each other's naming style when |
| 87 |
# the name regexes allow several styles. |
| 88 |
name-group= |
| 89 |
|
| 90 |
# Include a hint for the correct naming format with invalid-name |
| 91 |
include-naming-hint=no |
| 92 |
|
| 93 |
# Regular expression matching correct argument names |
| 94 |
argument-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 95 |
|
| 96 |
# Regular expression matching correct module names |
| 97 |
module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ |
| 98 |
|
| 99 |
# Regular expression matching correct class attribute names |
| 100 |
class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ |
| 101 |
|
| 102 |
# Regular expression matching correct function names |
| 103 |
function-rgx=(([a-z_][a-z0-9_]{2,30})|(_T_))$ |
| 104 |
|
| 105 |
# Regular expression matching correct inline iteration names |
| 106 |
inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ |
| 107 |
|
| 108 |
# Regular expression matching correct constant names |
| 109 |
const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$ |
| 110 |
|
| 111 |
# Regular expression matching correct method names |
| 112 |
method-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 113 |
|
| 114 |
# Regular expression matching correct class names |
| 115 |
class-rgx=[A-Z_][a-zA-Z0-9]+$ |
| 116 |
|
| 117 |
# Regular expression matching correct variable names |
| 118 |
variable-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 119 |
|
| 120 |
# Regular expression matching correct attribute names |
| 121 |
attr-rgx=[a-z_][a-z0-9_]{2,30}$ |
| 122 |
|
| 123 |
# Regular expression which should only match function or class names that do |
| 124 |
# not require a docstring. |
| 125 |
no-docstring-rgx=^_ |
| 126 |
|
| 127 |
# Minimum line length for functions/classes that require docstrings, shorter |
| 128 |
# ones are exempt. |
| 129 |
docstring-min-length=-1 |
| 130 |
|
| 131 |
|
| 132 |
[ELIF] |
| 133 |
|
| 134 |
# Maximum number of nested blocks for function / method body |
| 135 |
max-nested-blocks=5 |
| 136 |
|
| 137 |
|
| 138 |
[LOGGING] |
| 139 |
|
| 140 |
# Logging modules to check that the string format arguments are in logging |
| 141 |
# function parameter format |
| 142 |
logging-modules=logging |
| 143 |
|
| 144 |
|
| 145 |
[SPELLING] |
| 146 |
|
| 147 |
# Spelling dictionary name. Available dictionaries: none. To make it working |
| 148 |
# install python-enchant package. |
| 149 |
spelling-dict= |
| 150 |
|
| 151 |
# List of comma separated words that should not be checked. |
| 152 |
spelling-ignore-words= |
| 153 |
|
| 154 |
# A path to a file that contains private dictionary; one word per line. |
| 155 |
spelling-private-dict-file= |
| 156 |
|
| 157 |
# Tells whether to store unknown words to indicated private dictionary in |
| 158 |
# --spelling-private-dict-file option instead of raising a message. |
| 159 |
spelling-store-unknown-words=no |
| 160 |
|
| 161 |
|
| 162 |
[MISCELLANEOUS] |
| 163 |
|
| 164 |
# List of note tags to take in consideration, separated by a comma. |
| 165 |
notes=FIXME,XXX,TODO |
| 166 |
|
| 167 |
|
| 168 |
[TYPECHECK] |
| 169 |
|
| 170 |
# Tells whether missing members accessed in mixin class should be ignored. A |
| 171 |
# mixin class is detected if its name ends with "mixin" (case insensitive). |
| 172 |
ignore-mixin-members=yes |
| 173 |
|
| 174 |
# List of module names for which member attributes should not be checked |
| 175 |
# (useful for modules/projects where namespaces are manipulated during runtime |
| 176 |
# and thus existing member attributes cannot be deduced by static analysis. It |
| 177 |
# supports qualified module names, as well as Unix pattern matching. |
| 178 |
ignored-modules= |
| 179 |
|
| 180 |
# List of classes names for which member attributes should not be checked |
| 181 |
# (useful for classes with attributes dynamically set). This supports can work |
| 182 |
# with qualified names. |
| 183 |
ignored-classes= |
| 184 |
|
| 185 |
# List of members which are set dynamically and missed by pylint inference |
| 186 |
# system, and so shouldn't trigger E1101 when accessed. Python regular |
| 187 |
# expressions are accepted. |
| 188 |
generated-members= |
| 189 |
|
| 190 |
|
| 191 |
[SIMILARITIES] |
| 192 |
|
| 193 |
# Minimum lines number of a similarity. |
| 194 |
min-similarity-lines=4 |
| 195 |
|
| 196 |
# Ignore comments when computing similarities. |
| 197 |
ignore-comments=yes |
| 198 |
|
| 199 |
# Ignore docstrings when computing similarities. |
| 200 |
ignore-docstrings=yes |
| 201 |
|
| 202 |
# Ignore imports when computing similarities. |
| 203 |
ignore-imports=no |
| 204 |
|
| 205 |
|
| 206 |
[FORMAT] |
| 207 |
|
| 208 |
# Maximum number of characters on a single line. |
| 209 |
max-line-length=88 |
| 210 |
|
| 211 |
# Regexp for a line that is allowed to be longer than the limit. |
| 212 |
ignore-long-lines=^\s*(# )?<?https?://\S+>?$ |
| 213 |
|
| 214 |
# Allow the body of an if to be on the same line as the test if there is no |
| 215 |
# else. |
| 216 |
single-line-if-stmt=no |
| 217 |
|
| 218 |
# Maximum number of lines in a module |
| 219 |
max-module-lines=1000 |
| 220 |
|
| 221 |
# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 |
| 222 |
# tab). |
| 223 |
indent-string=' ' |
| 224 |
|
| 225 |
# Number of spaces of indent required inside a hanging or continued line. |
| 226 |
indent-after-paren=4 |
| 227 |
|
| 228 |
# Expected format of line ending, e.g. empty (any line ending), LF or CRLF. |
| 229 |
expected-line-ending-format= |
| 230 |
|
| 231 |
|
| 232 |
[VARIABLES] |
| 233 |
|
| 234 |
# Tells whether we should check for unused import in __init__ files. |
| 235 |
init-import=no |
| 236 |
|
| 237 |
# A regular expression matching the name of dummy variables (i.e. expectedly |
| 238 |
# not used). |
| 239 |
dummy-variables-rgx=_$|dummy |
| 240 |
|
| 241 |
# List of additional names supposed to be defined in builtins. Remember that |
| 242 |
# you should avoid to define new builtins when possible. |
| 243 |
additional-builtins= |
| 244 |
|
| 245 |
# List of strings which can identify a callback function by name. A callback |
| 246 |
# name must start or end with one of those strings. |
| 247 |
callbacks=cb_,_cb |
| 248 |
|
| 249 |
|
| 250 |
[CLASSES] |
| 251 |
|
| 252 |
# List of method names used to declare (i.e. assign) instance attributes. |
| 253 |
defining-attr-methods=__init__,__new__,setUp |
| 254 |
|
| 255 |
# List of valid names for the first argument in a class method. |
| 256 |
valid-classmethod-first-arg=cls |
| 257 |
|
| 258 |
# List of valid names for the first argument in a metaclass class method. |
| 259 |
valid-metaclass-classmethod-first-arg=mcs |
| 260 |
|
| 261 |
# List of member names, which should be excluded from the protected access |
| 262 |
# warning. |
| 263 |
exclude-protected=_asdict,_fields,_replace,_source,_make |
| 264 |
|
| 265 |
|
| 266 |
[IMPORTS] |
| 267 |
|
| 268 |
# Deprecated modules which should not be used, separated by a comma |
| 269 |
deprecated-modules=optparse |
| 270 |
|
| 271 |
# Create a graph of every (i.e. internal and external) dependencies in the |
| 272 |
# given file (report RP0402 must not be disabled) |
| 273 |
import-graph= |
| 274 |
|
| 275 |
# Create a graph of external dependencies in the given file (report RP0402 must |
| 276 |
# not be disabled) |
| 277 |
ext-import-graph= |
| 278 |
|
| 279 |
# Create a graph of internal dependencies in the given file (report RP0402 must |
| 280 |
# not be disabled) |
| 281 |
int-import-graph= |
| 282 |
|
| 283 |
|
| 284 |
[DESIGN] |
| 285 |
|
| 286 |
# Maximum number of arguments for function / method |
| 287 |
max-args=5 |
| 288 |
|
| 289 |
# Argument names that match this expression will be ignored. Default to name |
| 290 |
# with leading underscore |
| 291 |
ignored-argument-names=_.* |
| 292 |
|
| 293 |
# Maximum number of locals for function / method body |
| 294 |
max-locals=15 |
| 295 |
|
| 296 |
# Maximum number of return / yield for function / method body |
| 297 |
max-returns=6 |
| 298 |
|
| 299 |
# Maximum number of branch for function / method body |
| 300 |
max-branches=12 |
| 301 |
|
| 302 |
# Maximum number of statements in function / method body |
| 303 |
max-statements=50 |
| 304 |
|
| 305 |
# Maximum number of parents for a class (see R0901). |
| 306 |
max-parents=7 |
| 307 |
|
| 308 |
# Maximum number of attributes for a class (see R0902). |
| 309 |
max-attributes=7 |
| 310 |
|
| 311 |
# Minimum number of public methods for a class (see R0903). |
| 312 |
min-public-methods=2 |
| 313 |
|
| 314 |
# Maximum number of public methods for a class (see R0904). |
| 315 |
max-public-methods=20 |
| 316 |
|
| 317 |
# Maximum number of boolean expressions in a if statement |
| 318 |
max-bool-expr=5 |
| 319 |
|
| 320 |
|
| 321 |
[EXCEPTIONS] |
| 322 |
|
| 323 |
# Exceptions that will emit a warning when being caught. Defaults to |
| 324 |
# "Exception" |
| 325 |
overgeneral-exceptions=Exception |