You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

432 lines
16 KiB

  1. [MASTER]
  2. # A comma-separated list of package or module names from where C extensions may
  3. # be loaded. Extensions are loading into the active Python interpreter and may
  4. # run arbitrary code
  5. extension-pkg-whitelist=hid
  6. # Add files or directories to the blacklist. They should be base names, not
  7. # paths.
  8. ignore=CVS
  9. # Add files or directories matching the regex patterns to the blacklist. The
  10. # regex matches against base names, not paths.
  11. ignore-patterns=
  12. # Python code to execute, usually for sys.path manipulation such as
  13. # pygtk.require().
  14. #init-hook=
  15. # Use multiple processes to speed up Pylint.
  16. jobs=1
  17. # List of plugins (as comma separated values of python modules names) to load,
  18. # usually to register additional checkers.
  19. load-plugins=
  20. # Pickle collected data for later comparisons.
  21. persistent=yes
  22. # Specify a configuration file.
  23. #rcfile=
  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. [MESSAGES CONTROL]
  28. # Only show warnings with the listed confidence levels. Leave empty to show
  29. # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED
  30. confidence=
  31. # Disable the message, report, category or checker with the given id(s). You
  32. # can either give multiple identifiers separated by comma (,) or put this
  33. # option multiple times (only on the command line, not in the configuration
  34. # file where it should appear only once).You can also use "--disable=all" to
  35. # disable everything first and then reenable specific checks. For example, if
  36. # you want to run only the similarities checker, you can use "--disable=all
  37. # --enable=similarities". If you want to run only the classes checker, but have
  38. # no Warning level messages displayed, use"--disable=all --enable=classes
  39. # --disable=W"
  40. # disable=import-error,print-statement,parameter-unpacking,unpacking-in-except,old-raise-syntax,backtick,long-suffix,old-ne-operator,old-octal-literal,import-star-module-level,raw-checker-failed,bad-inline-option,locally-disabled,locally-enabled,file-ignored,suppressed-message,useless-suppression,deprecated-pragma,apply-builtin,basestring-builtin,buffer-builtin,cmp-builtin,coerce-builtin,execfile-builtin,file-builtin,long-builtin,raw_input-builtin,reduce-builtin,standarderror-builtin,unicode-builtin,xrange-builtin,coerce-method,delslice-method,getslice-method,setslice-method,no-absolute-import,old-division,dict-iter-method,dict-view-method,next-method-called,metaclass-assignment,indexing-exception,raising-string,reload-builtin,oct-method,hex-method,nonzero-method,cmp-method,input-builtin,round-builtin,intern-builtin,unichr-builtin,map-builtin-not-iterating,zip-builtin-not-iterating,range-builtin-not-iterating,filter-builtin-not-iterating,using-cmp-argument,eq-without-hash,div-method,idiv-method,rdiv-method,exception-message-attribute,invalid-str-codec,sys-max-int,bad-python3-import,deprecated-string-function,deprecated-str-translate-call
  41. disable=print-statement,parameter-unpacking,unpacking-in-except,old-raise-syntax,backtick,long-suffix,old-ne-operator,old-octal-literal,import-star-module-level,raw-checker-failed,bad-inline-option,locally-disabled,locally-enabled,file-ignored,suppressed-message,useless-suppression,deprecated-pragma,apply-builtin,basestring-builtin,buffer-builtin,cmp-builtin,coerce-builtin,execfile-builtin,file-builtin,long-builtin,raw_input-builtin,reduce-builtin,standarderror-builtin,unicode-builtin,xrange-builtin,coerce-method,delslice-method,getslice-method,setslice-method,no-absolute-import,old-division,dict-iter-method,dict-view-method,next-method-called,metaclass-assignment,indexing-exception,raising-string,reload-builtin,oct-method,hex-method,nonzero-method,cmp-method,input-builtin,round-builtin,intern-builtin,unichr-builtin,map-builtin-not-iterating,zip-builtin-not-iterating,range-builtin-not-iterating,filter-builtin-not-iterating,using-cmp-argument,eq-without-hash,div-method,idiv-method,rdiv-method,exception-message-attribute,invalid-str-codec,sys-max-int,bad-python3-import,deprecated-string-function,deprecated-str-translate-call,import-error,attribute-defined-outside-init,bad-continuation,invalid-name,import-error,import-outside-toplevel,too-many-branches,too-many-statements,too-many-public-methods
  42. # Enable the message, report, category or checker with the given id(s). You can
  43. # either give multiple identifier separated by comma (,) or put this option
  44. # multiple time (only on the command line, not in the configuration file where
  45. # it should appear only once). See also the "--disable" option for examples.
  46. enable=
  47. [REPORTS]
  48. # Python expression which should return a note less than 10 (10 is the highest
  49. # note). You have access to the variables errors warning, statement which
  50. # respectively contain the number of errors / warnings messages and the total
  51. # number of statements analyzed. This is used by the global evaluation report
  52. # (RP0004).
  53. evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
  54. # Template used to display messages. This is a python new-style format string
  55. # used to format the message information. See doc for all details
  56. #msg-template=
  57. # Set the output format. Available formats are text, parseable, colorized, json
  58. # and msvs (visual studio).You can also give a reporter class, eg
  59. # mypackage.mymodule.MyReporterClass.
  60. output-format=text
  61. # Tells whether to display a full report or only the messages
  62. reports=no
  63. # Activate the evaluation score.
  64. score=yes
  65. [REFACTORING]
  66. # Maximum number of nested blocks for function / method body
  67. max-nested-blocks=5
  68. [LOGGING]
  69. # Logging modules to check that the string format arguments are in logging
  70. # function parameter format
  71. logging-modules=logging
  72. [SPELLING]
  73. # Spelling dictionary name. Available dictionaries: none. To make it working
  74. # install python-enchant package.
  75. spelling-dict=
  76. # List of comma separated words that should not be checked.
  77. spelling-ignore-words=
  78. # A path to a file that contains private dictionary; one word per line.
  79. spelling-private-dict-file=
  80. # Tells whether to store unknown words to indicated private dictionary in
  81. # --spelling-private-dict-file option instead of raising a message.
  82. spelling-store-unknown-words=no
  83. [MISCELLANEOUS]
  84. # List of note tags to take in consideration, separated by a comma.
  85. # notes=FIXME,XXX,TODO
  86. notes=FIXME,XXX
  87. [TYPECHECK]
  88. # List of decorators that produce context managers, such as
  89. # contextlib.contextmanager. Add to this list to register other decorators that
  90. # produce valid context managers.
  91. contextmanager-decorators=contextlib.contextmanager
  92. # List of members which are set dynamically and missed by pylint inference
  93. # system, and so shouldn't trigger E1101 when accessed. Python regular
  94. # expressions are accepted.
  95. generated-members=
  96. # Tells whether missing members accessed in mixin class should be ignored. A
  97. # mixin class is detected if its name ends with "mixin" (case insensitive).
  98. ignore-mixin-members=yes
  99. # This flag controls whether pylint should warn about no-member and similar
  100. # checks whenever an opaque object is returned when inferring. The inference
  101. # can return multiple potential results while evaluating a Python object, but
  102. # some branches might not be evaluated, which results in partial inference. In
  103. # that case, it might be useful to still emit no-member and other checks for
  104. # the rest of the inferred objects.
  105. ignore-on-opaque-inference=yes
  106. # List of class names for which member attributes should not be checked (useful
  107. # for classes with dynamically set attributes). This supports the use of
  108. # qualified names.
  109. ignored-classes=optparse.Values,thread._local,_thread._local
  110. # List of module names for which member attributes should not be checked
  111. # (useful for modules/projects where namespaces are manipulated during runtime
  112. # and thus existing member attributes cannot be deduced by static analysis. It
  113. # supports qualified module names, as well as Unix pattern matching.
  114. ignored-modules=
  115. # Show a hint with possible names when a member name was not found. The aspect
  116. # of finding the hint is based on edit distance.
  117. missing-member-hint=yes
  118. # The minimum edit distance a name should have in order to be considered a
  119. # similar match for a missing member name.
  120. missing-member-hint-distance=1
  121. # The total number of similar names that should be taken in consideration when
  122. # showing a hint for a missing member.
  123. missing-member-max-choices=1
  124. [VARIABLES]
  125. # List of additional names supposed to be defined in builtins. Remember that
  126. # you should avoid to define new builtins when possible.
  127. additional-builtins=
  128. # Tells whether unused global variables should be treated as a violation.
  129. allow-global-unused-variables=yes
  130. # List of strings which can identify a callback function by name. A callback
  131. # name must start or end with one of those strings.
  132. callbacks=cb_,_cb
  133. # A regular expression matching the name of dummy variables (i.e. expectedly
  134. # not used).
  135. dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
  136. # Argument names that match this expression will be ignored. Default to name
  137. # with leading underscore
  138. ignored-argument-names=_.*|^ignored_|^unused_
  139. # Tells whether we should check for unused import in __init__ files.
  140. init-import=no
  141. # List of qualified module names which can have objects that can redefine
  142. # builtins.
  143. redefining-builtins-modules=six.moves,future.builtins
  144. [FORMAT]
  145. # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
  146. # expected-line-ending-format=
  147. expected-line-ending-format=LF
  148. # Regexp for a line that is allowed to be longer than the limit.
  149. ignore-long-lines=^\s*(# )?<?https?://\S+>?$
  150. # Number of spaces of indent required inside a hanging or continued line.
  151. indent-after-paren=4
  152. # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
  153. # tab).
  154. indent-string=' '
  155. # Maximum number of characters on a single line.
  156. max-line-length=100
  157. # Maximum number of lines in a module
  158. max-module-lines=1000
  159. # List of optional constructs for which whitespace checking is disabled. `dict-
  160. # separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
  161. # `trailing-comma` allows a space between comma and closing bracket: (a, ).
  162. # `empty-line` allows space-only lines.
  163. no-space-check=trailing-comma,dict-separator
  164. # Allow the body of a class to be on the same line as the declaration if body
  165. # contains single statement.
  166. single-line-class-stmt=no
  167. # Allow the body of an if to be on the same line as the test if there is no
  168. # else.
  169. single-line-if-stmt=no
  170. [SIMILARITIES]
  171. # Ignore comments when computing similarities.
  172. ignore-comments=yes
  173. # Ignore docstrings when computing similarities.
  174. ignore-docstrings=yes
  175. # Ignore imports when computing similarities.
  176. ignore-imports=no
  177. # Minimum lines number of a similarity.
  178. min-similarity-lines=12
  179. [BASIC]
  180. # Naming hint for argument names
  181. argument-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
  182. # Regular expression matching correct argument names
  183. argument-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
  184. # Naming hint for attribute names
  185. attr-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
  186. # Regular expression matching correct attribute names
  187. attr-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
  188. # Bad variable names which should always be refused, separated by a comma
  189. bad-names=foo,bar,baz,toto,tutu,tata
  190. # Naming hint for class attribute names
  191. class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
  192. # Regular expression matching correct class attribute names
  193. class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
  194. # Naming hint for class names
  195. # class-name-hint=[A-Z_][a-zA-Z0-9]+$
  196. class-name-hint=[A-Z_][a-zA-Z0-9_]+$
  197. # Regular expression matching correct class names
  198. # class-rgx=[A-Z_][a-zA-Z0-9]+$
  199. class-rgx=[A-Z_][a-zA-Z0-9_]+$
  200. # Naming hint for constant names
  201. const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
  202. # Regular expression matching correct constant names
  203. const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
  204. # Minimum line length for functions/classes that require docstrings, shorter
  205. # ones are exempt.
  206. docstring-min-length=-1
  207. # Naming hint for function names
  208. function-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
  209. # Regular expression matching correct function names
  210. function-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
  211. # Good variable names which should always be accepted, separated by a comma
  212. # good-names=i,j,k,ex,Run,_
  213. good-names=r,g,b,w,i,j,k,n,x,y,z,ex,ok,Run,_
  214. # Include a hint for the correct naming format with invalid-name
  215. include-naming-hint=no
  216. # Naming hint for inline iteration names
  217. inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
  218. # Regular expression matching correct inline iteration names
  219. inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
  220. # Naming hint for method names
  221. method-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
  222. # Regular expression matching correct method names
  223. method-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
  224. # Naming hint for module names
  225. module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
  226. # Regular expression matching correct module names
  227. module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
  228. # Colon-delimited sets of names that determine each other's naming style when
  229. # the name regexes allow several styles.
  230. name-group=
  231. # Regular expression which should only match function or class names that do
  232. # not require a docstring.
  233. no-docstring-rgx=^_
  234. # List of decorators that produce properties, such as abc.abstractproperty. Add
  235. # to this list to register other decorators that produce valid properties.
  236. property-classes=abc.abstractproperty
  237. # Naming hint for variable names
  238. variable-name-hint=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
  239. # Regular expression matching correct variable names
  240. variable-rgx=(([a-z][a-z0-9_]{2,30})|(_[a-z0-9_]*))$
  241. [IMPORTS]
  242. # Allow wildcard imports from modules that define __all__.
  243. allow-wildcard-with-all=no
  244. # Analyse import fallback blocks. This can be used to support both Python 2 and
  245. # 3 compatible code, which means that the block might have code that exists
  246. # only in one or another interpreter, leading to false positives when analysed.
  247. analyse-fallback-blocks=no
  248. # Deprecated modules which should not be used, separated by a comma
  249. deprecated-modules=optparse,tkinter.tix
  250. # Create a graph of external dependencies in the given file (report RP0402 must
  251. # not be disabled)
  252. ext-import-graph=
  253. # Create a graph of every (i.e. internal and external) dependencies in the
  254. # given file (report RP0402 must not be disabled)
  255. import-graph=
  256. # Create a graph of internal dependencies in the given file (report RP0402 must
  257. # not be disabled)
  258. int-import-graph=
  259. # Force import order to recognize a module as part of the standard
  260. # compatibility libraries.
  261. known-standard-library=
  262. # Force import order to recognize a module as part of a third party library.
  263. known-third-party=enchant
  264. [CLASSES]
  265. # List of method names used to declare (i.e. assign) instance attributes.
  266. defining-attr-methods=__init__,__new__,setUp
  267. # List of member names, which should be excluded from the protected access
  268. # warning.
  269. exclude-protected=_asdict,_fields,_replace,_source,_make
  270. # List of valid names for the first argument in a class method.
  271. valid-classmethod-first-arg=cls
  272. # List of valid names for the first argument in a metaclass class method.
  273. valid-metaclass-classmethod-first-arg=mcs
  274. [DESIGN]
  275. # Maximum number of arguments for function / method
  276. max-args=5
  277. # Maximum number of attributes for a class (see R0902).
  278. # max-attributes=7
  279. max-attributes=11
  280. # Maximum number of boolean expressions in a if statement
  281. max-bool-expr=5
  282. # Maximum number of branch for function / method body
  283. max-branches=12
  284. # Maximum number of locals for function / method body
  285. max-locals=15
  286. # Maximum number of parents for a class (see R0901).
  287. max-parents=7
  288. # Maximum number of public methods for a class (see R0904).
  289. max-public-methods=20
  290. # Maximum number of return / yield for function / method body
  291. max-returns=6
  292. # Maximum number of statements in function / method body
  293. max-statements=50
  294. # Minimum number of public methods for a class (see R0903).
  295. min-public-methods=1
  296. [EXCEPTIONS]
  297. # Exceptions that will emit a warning when being caught. Defaults to
  298. # "Exception"
  299. overgeneral-exceptions=Exception