Generate a Python package project using the Python Cookiecutter package
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.

570 satır
17KB

  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=
  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=.tox,
  12. site-packages,
  13. _version.py
  14. # Python code to execute, usually for sys.path manipulation such as
  15. # pygtk.require().
  16. #init-hook="from pylint.config import find_pylintrc; import os, sys; sys.path.append(os.path.dirname(find_pylintrc()))"
  17. # Use multiple processes to speed up Pylint. Specifying 0 will auto-detect the
  18. # number of processors available to use.
  19. jobs=0
  20. # Control the amount of potential inferred values when inferring a single
  21. # object. This can help the performance when dealing with large functions or
  22. # complex, nested conditions.
  23. limit-inference-results=100
  24. # List of plugins (as comma separated values of python modules names) to load,
  25. # usually to register additional checkers.
  26. load-plugins=
  27. # Pickle collected data for later comparisons.
  28. persistent=yes
  29. # Specify a configuration file.
  30. #rcfile=
  31. # When enabled, pylint would attempt to guess common misconfiguration and emit
  32. # user-friendly hints instead of false-positive error messages.
  33. suggestion-mode=yes
  34. # Allow loading of arbitrary C extensions. Extensions are imported into the
  35. # active Python interpreter and may run arbitrary code.
  36. unsafe-load-any-extension=no
  37. [MESSAGES CONTROL]
  38. # Only show warnings with the listed confidence levels. Leave empty to show
  39. # all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED.
  40. confidence=
  41. # Disable the message, report, category or checker with the given id(s). You
  42. # can either give multiple identifiers separated by comma (,) or put this
  43. # option multiple times (only on the command line, not in the configuration
  44. # file where it should appear only once). You can also use "--disable=all" to
  45. # disable everything first and then reenable specific checks. For example, if
  46. # you want to run only the similarities checker, you can use "--disable=all
  47. # --enable=similarities". If you want to run only the classes checker, but have
  48. # no Warning level messages displayed, use "--disable=all --enable=classes
  49. # --disable=W".
  50. disable=print-statement,
  51. parameter-unpacking,
  52. unpacking-in-except,
  53. old-raise-syntax,
  54. backtick,
  55. long-suffix,
  56. old-ne-operator,
  57. old-octal-literal,
  58. import-star-module-level,
  59. non-ascii-bytes-literal,
  60. raw-checker-failed,
  61. bad-inline-option,
  62. locally-disabled,
  63. locally-enabled,
  64. file-ignored,
  65. suppressed-message,
  66. useless-suppression,
  67. deprecated-pragma,
  68. use-symbolic-message-instead,
  69. apply-builtin,
  70. basestring-builtin,
  71. buffer-builtin,
  72. cmp-builtin,
  73. coerce-builtin,
  74. execfile-builtin,
  75. file-builtin,
  76. long-builtin,
  77. raw_input-builtin,
  78. reduce-builtin,
  79. standarderror-builtin,
  80. unicode-builtin,
  81. xrange-builtin,
  82. coerce-method,
  83. delslice-method,
  84. getslice-method,
  85. setslice-method,
  86. no-absolute-import,
  87. old-division,
  88. dict-iter-method,
  89. dict-view-method,
  90. next-method-called,
  91. metaclass-assignment,
  92. indexing-exception,
  93. raising-string,
  94. reload-builtin,
  95. oct-method,
  96. hex-method,
  97. nonzero-method,
  98. cmp-method,
  99. input-builtin,
  100. round-builtin,
  101. intern-builtin,
  102. unichr-builtin,
  103. map-builtin-not-iterating,
  104. zip-builtin-not-iterating,
  105. range-builtin-not-iterating,
  106. filter-builtin-not-iterating,
  107. using-cmp-argument,
  108. eq-without-hash,
  109. div-method,
  110. idiv-method,
  111. rdiv-method,
  112. exception-message-attribute,
  113. invalid-str-codec,
  114. sys-max-int,
  115. bad-python3-import,
  116. deprecated-string-function,
  117. deprecated-str-translate-call,
  118. deprecated-itertools-function,
  119. deprecated-types-field,
  120. next-method-defined,
  121. dict-items-not-iterating,
  122. dict-keys-not-iterating,
  123. dict-values-not-iterating,
  124. deprecated-operator-function,
  125. deprecated-urllib-function,
  126. xreadlines-attribute,
  127. deprecated-sys-function,
  128. exception-escape,
  129. comprehension-escape,
  130. missing-docstring,
  131. duplicate-code,
  132. import-error,
  133. old-style-class,
  134. ungrouped-imports,
  135. bad-continuation,
  136. useless-object-inheritance,
  137. logging-fstring-interpolation
  138. # Enable the message, report, category or checker with the given id(s). You can
  139. # either give multiple identifier separated by comma (,) or put this option
  140. # multiple time (only on the command line, not in the configuration file where
  141. # it should appear only once). See also the "--disable" option for examples.
  142. enable=c-extension-no-member
  143. [REPORTS]
  144. # Python expression which should return a note less than 10 (10 is the highest
  145. # note). You have access to the variables errors warning, statement which
  146. # respectively contain the number of errors / warnings messages and the total
  147. # number of statements analyzed. This is used by the global evaluation report
  148. # (RP0004).
  149. evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
  150. # Template used to display messages. This is a python new-style format string
  151. # used to format the message information. See doc for all details.
  152. msg-template='{path}:{obj}:{line}: [{msg_id}({symbol})] {msg}'
  153. # Set the output format. Available formats are text, parseable, colorized, json
  154. # and msvs (visual studio). You can also give a reporter class, e.g.
  155. # mypackage.mymodule.MyReporterClass.
  156. output-format=text
  157. # Tells whether to display a full report or only the messages.
  158. reports=no
  159. # Activate the evaluation score.
  160. score=yes
  161. [REFACTORING]
  162. # Maximum number of nested blocks for function / method body
  163. max-nested-blocks=5
  164. # Complete name of functions that never returns. When checking for
  165. # inconsistent-return-statements if a never returning function is called then
  166. # it will be considered as an explicit return statement and no message will be
  167. # printed.
  168. never-returning-functions=sys.exit
  169. [BASIC]
  170. # Naming style matching correct argument names.
  171. argument-naming-style=snake_case
  172. # Regular expression matching correct argument names. Overrides argument-
  173. # naming-style.
  174. #argument-rgx=
  175. # Naming style matching correct attribute names.
  176. attr-naming-style=snake_case
  177. # Regular expression matching correct attribute names. Overrides attr-naming-
  178. # style.
  179. #attr-rgx=
  180. # Bad variable names which should always be refused, separated by a comma.
  181. bad-names=foo,
  182. bar,
  183. baz,
  184. toto,
  185. tutu,
  186. tata
  187. # Naming style matching correct class attribute names.
  188. class-attribute-naming-style=any
  189. # Regular expression matching correct class attribute names. Overrides class-
  190. # attribute-naming-style.
  191. #class-attribute-rgx=
  192. # Naming style matching correct class names.
  193. class-naming-style=PascalCase
  194. # Regular expression matching correct class names. Overrides class-naming-
  195. # style.
  196. #class-rgx=
  197. # Naming style matching correct constant names.
  198. const-naming-style=UPPER_CASE
  199. # Regular expression matching correct constant names. Overrides const-naming-
  200. # style.
  201. #const-rgx=
  202. # Minimum line length for functions/classes that require docstrings, shorter
  203. # ones are exempt.
  204. docstring-min-length=-1
  205. # Naming style matching correct function names.
  206. function-naming-style=snake_case
  207. # Regular expression matching correct function names. Overrides function-
  208. # naming-style.
  209. #function-rgx=
  210. # Good variable names which should always be accepted, separated by a comma.
  211. good-names=e,
  212. i,
  213. j,
  214. k,
  215. ex,
  216. Run,
  217. _
  218. # Include a hint for the correct naming format with invalid-name.
  219. include-naming-hint=no
  220. # Naming style matching correct inline iteration names.
  221. inlinevar-naming-style=any
  222. # Regular expression matching correct inline iteration names. Overrides
  223. # inlinevar-naming-style.
  224. #inlinevar-rgx=
  225. # Naming style matching correct method names.
  226. method-naming-style=snake_case
  227. # Regular expression matching correct method names. Overrides method-naming-
  228. # style.
  229. #method-rgx=
  230. # Naming style matching correct module names.
  231. module-naming-style=snake_case
  232. # Regular expression matching correct module names. Overrides module-naming-
  233. # style.
  234. #module-rgx=
  235. # Colon-delimited sets of names that determine each other's naming style when
  236. # the name regexes allow several styles.
  237. name-group=
  238. # Regular expression which should only match function or class names that do
  239. # not require a docstring.
  240. no-docstring-rgx=^_
  241. # List of decorators that produce properties, such as abc.abstractproperty. Add
  242. # to this list to register other decorators that produce valid properties.
  243. # These decorators are taken in consideration only for invalid-name.
  244. property-classes=abc.abstractproperty
  245. # Naming style matching correct variable names.
  246. variable-naming-style=snake_case
  247. # Regular expression matching correct variable names. Overrides variable-
  248. # naming-style.
  249. #variable-rgx=
  250. [FORMAT]
  251. # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
  252. expected-line-ending-format=
  253. # Regexp for a line that is allowed to be longer than the limit.
  254. ignore-long-lines=^\s*(# )?<?https?://\S+>?$
  255. # Number of spaces of indent required inside a hanging or continued line.
  256. indent-after-paren=4
  257. # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
  258. # tab).
  259. indent-string=' '
  260. # Maximum number of characters on a single line.
  261. max-line-length=100
  262. # Maximum number of lines in a module.
  263. max-module-lines=3000
  264. # List of optional constructs for which whitespace checking is disabled. `dict-
  265. # separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
  266. # `trailing-comma` allows a space between comma and closing bracket: (a, ).
  267. # `empty-line` allows space-only lines.
  268. no-space-check=trailing-comma,
  269. dict-separator
  270. # Allow the body of a class to be on the same line as the declaration if body
  271. # contains single statement.
  272. single-line-class-stmt=no
  273. # Allow the body of an if to be on the same line as the test if there is no
  274. # else.
  275. single-line-if-stmt=no
  276. [LOGGING]
  277. # Logging modules to check that the string format arguments are in logging
  278. # function parameter format.
  279. logging-modules=logging
  280. [MISCELLANEOUS]
  281. # List of note tags to take in consideration, separated by a comma.
  282. notes=FIXME,
  283. XXX,
  284. TODO
  285. [SIMILARITIES]
  286. # Ignore comments when computing similarities.
  287. ignore-comments=yes
  288. # Ignore docstrings when computing similarities.
  289. ignore-docstrings=yes
  290. # Ignore imports when computing similarities.
  291. ignore-imports=no
  292. # Minimum lines number of a similarity.
  293. min-similarity-lines=4
  294. [SPELLING]
  295. # Limits count of emitted suggestions for spelling mistakes.
  296. max-spelling-suggestions=4
  297. # Spelling dictionary name. Available dictionaries: none. To make it working
  298. # install python-enchant package..
  299. spelling-dict=
  300. # List of comma separated words that should not be checked.
  301. spelling-ignore-words=
  302. # A path to a file that contains private dictionary; one word per line.
  303. spelling-private-dict-file=
  304. # Tells whether to store unknown words to indicated private dictionary in
  305. # --spelling-private-dict-file option instead of raising a message.
  306. spelling-store-unknown-words=no
  307. [TYPECHECK]
  308. # List of decorators that produce context managers, such as
  309. # contextlib.contextmanager. Add to this list to register other decorators that
  310. # produce valid context managers.
  311. contextmanager-decorators=contextlib.contextmanager
  312. # List of members which are set dynamically and missed by pylint inference
  313. # system, and so shouldn't trigger E1101 when accessed. Python regular
  314. # expressions are accepted.
  315. generated-members=
  316. # Tells whether missing members accessed in mixin class should be ignored. A
  317. # mixin class is detected if its name ends with "mixin" (case insensitive).
  318. ignore-mixin-members=yes
  319. # Tells whether to warn about missing members when the owner of the attribute
  320. # is inferred to be None.
  321. ignore-none=yes
  322. # This flag controls whether pylint should warn about no-member and similar
  323. # checks whenever an opaque object is returned when inferring. The inference
  324. # can return multiple potential results while evaluating a Python object, but
  325. # some branches might not be evaluated, which results in partial inference. In
  326. # that case, it might be useful to still emit no-member and other checks for
  327. # the rest of the inferred objects.
  328. ignore-on-opaque-inference=yes
  329. # List of class names for which member attributes should not be checked (useful
  330. # for classes with dynamically set attributes). This supports the use of
  331. # qualified names.
  332. ignored-classes=optparse.Values,thread._local,_thread._local
  333. # List of module names for which member attributes should not be checked
  334. # (useful for modules/projects where namespaces are manipulated during runtime
  335. # and thus existing member attributes cannot be deduced by static analysis. It
  336. # supports qualified module names, as well as Unix pattern matching.
  337. ignored-modules=
  338. # Show a hint with possible names when a member name was not found. The aspect
  339. # of finding the hint is based on edit distance.
  340. missing-member-hint=yes
  341. # The minimum edit distance a name should have in order to be considered a
  342. # similar match for a missing member name.
  343. missing-member-hint-distance=1
  344. # The total number of similar names that should be taken in consideration when
  345. # showing a hint for a missing member.
  346. missing-member-max-choices=1
  347. [VARIABLES]
  348. # List of additional names supposed to be defined in builtins. Remember that
  349. # you should avoid to define new builtins when possible.
  350. additional-builtins=
  351. # Tells whether unused global variables should be treated as a violation.
  352. allow-global-unused-variables=yes
  353. # List of strings which can identify a callback function by name. A callback
  354. # name must start or end with one of those strings.
  355. callbacks=cb_,
  356. _cb
  357. # A regular expression matching the name of dummy variables (i.e. expected to
  358. # not be used).
  359. dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
  360. # Argument names that match this expression will be ignored. Default to name
  361. # with leading underscore.
  362. ignored-argument-names=_.*|^ignored_|^unused_
  363. # Tells whether we should check for unused import in __init__ files.
  364. init-import=no
  365. # List of qualified module names which can have objects that can redefine
  366. # builtins.
  367. redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
  368. [CLASSES]
  369. # List of method names used to declare (i.e. assign) instance attributes.
  370. defining-attr-methods=__init__,
  371. __new__,
  372. setUp
  373. # List of member names, which should be excluded from the protected access
  374. # warning.
  375. exclude-protected=_asdict,
  376. _fields,
  377. _replace,
  378. _source,
  379. _make
  380. # List of valid names for the first argument in a class method.
  381. valid-classmethod-first-arg=cls
  382. # List of valid names for the first argument in a metaclass class method.
  383. valid-metaclass-classmethod-first-arg=cls
  384. [DESIGN]
  385. # Maximum number of arguments for function / method.
  386. max-args=15
  387. # Maximum number of attributes for a class (see R0902).
  388. max-attributes=20
  389. # Maximum number of boolean expressions in an if statement.
  390. max-bool-expr=7
  391. # Maximum number of branch for function / method body.
  392. max-branches=12
  393. # Maximum number of locals for function / method body.
  394. max-locals=15
  395. # Maximum number of parents for a class (see R0901).
  396. max-parents=7
  397. # Maximum number of public methods for a class (see R0904).
  398. max-public-methods=20
  399. # Maximum number of return / yield for function / method body.
  400. max-returns=10
  401. # Maximum number of statements in function / method body.
  402. max-statements=50
  403. # Minimum number of public methods for a class (see R0903).
  404. min-public-methods=2
  405. [IMPORTS]
  406. # Allow wildcard imports from modules that define __all__.
  407. allow-wildcard-with-all=no
  408. # Analyse import fallback blocks. This can be used to support both Python 2 and
  409. # 3 compatible code, which means that the block might have code that exists
  410. # only in one or another interpreter, leading to false positives when analysed.
  411. analyse-fallback-blocks=no
  412. # Deprecated modules which should not be used, separated by a comma.
  413. deprecated-modules=optparse,tkinter.tix
  414. # Create a graph of external dependencies in the given file (report RP0402 must
  415. # not be disabled).
  416. ext-import-graph=
  417. # Create a graph of every (i.e. internal and external) dependencies in the
  418. # given file (report RP0402 must not be disabled).
  419. import-graph=
  420. # Create a graph of internal dependencies in the given file (report RP0402 must
  421. # not be disabled).
  422. int-import-graph=
  423. # Force import order to recognize a module as part of the standard
  424. # compatibility libraries.
  425. known-standard-library=
  426. # Force import order to recognize a module as part of a third party library.
  427. known-third-party=enchant
  428. [EXCEPTIONS]
  429. # Exceptions that will emit a warning when being caught. Defaults to
  430. # "Exception".
  431. overgeneral-exceptions=Exception