No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

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