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.
 
 
 
 

579 regels
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. # Enable the message, report, category or checker with the given id(s). You can
  135. # either give multiple identifier separated by comma (,) or put this option
  136. # multiple time (only on the command line, not in the configuration file where
  137. # it should appear only once). See also the "--disable" option for examples.
  138. enable=c-extension-no-member
  139. [REPORTS]
  140. # Python expression which should return a note less than 10 (10 is the highest
  141. # note). You have access to the variables errors warning, statement which
  142. # respectively contain the number of errors / warnings messages and the total
  143. # number of statements analyzed. This is used by the global evaluation report
  144. # (RP0004).
  145. evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
  146. # Template used to display messages. This is a python new-style format string
  147. # used to format the message information. See doc for all details.
  148. #msg-template=
  149. # Set the output format. Available formats are text, parseable, colorized, json
  150. # and msvs (visual studio). You can also give a reporter class, e.g.
  151. # mypackage.mymodule.MyReporterClass.
  152. output-format=text
  153. # Tells whether to display a full report or only the messages.
  154. reports=no
  155. # Activate the evaluation score.
  156. score=yes
  157. [REFACTORING]
  158. # Maximum number of nested blocks for function / method body
  159. max-nested-blocks=5
  160. # Complete name of functions that never returns. When checking for
  161. # inconsistent-return-statements if a never returning function is called then
  162. # it will be considered as an explicit return statement and no message will be
  163. # printed.
  164. never-returning-functions=sys.exit
  165. [BASIC]
  166. # Naming style matching correct argument names.
  167. argument-naming-style=snake_case
  168. # Regular expression matching correct argument names. Overrides argument-
  169. # naming-style.
  170. #argument-rgx=
  171. # Naming style matching correct attribute names.
  172. attr-naming-style=snake_case
  173. # Regular expression matching correct attribute names. Overrides attr-naming-
  174. # style.
  175. #attr-rgx=
  176. # Bad variable names which should always be refused, separated by a comma.
  177. bad-names=foo,
  178. bar,
  179. baz,
  180. toto,
  181. tutu,
  182. tata
  183. # Naming style matching correct class attribute names.
  184. class-attribute-naming-style=any
  185. # Regular expression matching correct class attribute names. Overrides class-
  186. # attribute-naming-style.
  187. #class-attribute-rgx=
  188. # Naming style matching correct class names.
  189. class-naming-style=PascalCase
  190. # Regular expression matching correct class names. Overrides class-naming-
  191. # style.
  192. #class-rgx=
  193. # Naming style matching correct constant names.
  194. const-naming-style=UPPER_CASE
  195. # Regular expression matching correct constant names. Overrides const-naming-
  196. # style.
  197. #const-rgx=
  198. # Minimum line length for functions/classes that require docstrings, shorter
  199. # ones are exempt.
  200. docstring-min-length=-1
  201. # Naming style matching correct function names.
  202. function-naming-style=snake_case
  203. # Regular expression matching correct function names. Overrides function-
  204. # naming-style.
  205. #function-rgx=
  206. # Good variable names which should always be accepted, separated by a comma.
  207. good-names=i,
  208. j,
  209. k,
  210. ex,
  211. Run,
  212. _
  213. # Include a hint for the correct naming format with invalid-name.
  214. include-naming-hint=no
  215. # Naming style matching correct inline iteration names.
  216. inlinevar-naming-style=any
  217. # Regular expression matching correct inline iteration names. Overrides
  218. # inlinevar-naming-style.
  219. #inlinevar-rgx=
  220. # Naming style matching correct method names.
  221. method-naming-style=snake_case
  222. # Regular expression matching correct method names. Overrides method-naming-
  223. # style.
  224. #method-rgx=
  225. # Naming style matching correct module names.
  226. module-naming-style=snake_case
  227. # Regular expression matching correct module names. Overrides module-naming-
  228. # style.
  229. #module-rgx=
  230. # Colon-delimited sets of names that determine each other's naming style when
  231. # the name regexes allow several styles.
  232. name-group=
  233. # Regular expression which should only match function or class names that do
  234. # not require a docstring.
  235. no-docstring-rgx=^_
  236. # List of decorators that produce properties, such as abc.abstractproperty. Add
  237. # to this list to register other decorators that produce valid properties.
  238. # These decorators are taken in consideration only for invalid-name.
  239. property-classes=abc.abstractproperty
  240. # Naming style matching correct variable names.
  241. variable-naming-style=snake_case
  242. # Regular expression matching correct variable names. Overrides variable-
  243. # naming-style.
  244. #variable-rgx=
  245. [FORMAT]
  246. # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
  247. expected-line-ending-format=
  248. # Regexp for a line that is allowed to be longer than the limit.
  249. ignore-long-lines=^\s*(# )?<?https?://\S+>?$
  250. # Number of spaces of indent required inside a hanging or continued line.
  251. indent-after-paren=4
  252. # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
  253. # tab).
  254. indent-string=' '
  255. # Maximum number of characters on a single line.
  256. max-line-length=120
  257. # Maximum number of lines in a module.
  258. max-module-lines=1000
  259. # List of optional constructs for which whitespace checking is disabled. `dict-
  260. # separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
  261. # `trailing-comma` allows a space between comma and closing bracket: (a, ).
  262. # `empty-line` allows space-only lines.
  263. no-space-check=trailing-comma,
  264. dict-separator
  265. # Allow the body of a class to be on the same line as the declaration if body
  266. # contains single statement.
  267. single-line-class-stmt=no
  268. # Allow the body of an if to be on the same line as the test if there is no
  269. # else.
  270. single-line-if-stmt=no
  271. [LOGGING]
  272. # Format style used to check logging format string. `old` means using %
  273. # formatting, while `new` is for `{}` formatting.
  274. logging-format-style=old
  275. # Logging modules to check that the string format arguments are in logging
  276. # function parameter format.
  277. logging-modules=logging
  278. [MISCELLANEOUS]
  279. # List of note tags to take in consideration, separated by a comma.
  280. notes=FIXME,
  281. XXX,
  282. TODO
  283. [SIMILARITIES]
  284. # Ignore comments when computing similarities.
  285. ignore-comments=yes
  286. # Ignore docstrings when computing similarities.
  287. ignore-docstrings=yes
  288. # Ignore imports when computing similarities.
  289. ignore-imports=no
  290. # Minimum lines number of a similarity.
  291. min-similarity-lines=4
  292. [SPELLING]
  293. # Limits count of emitted suggestions for spelling mistakes.
  294. max-spelling-suggestions=4
  295. # Spelling dictionary name. Available dictionaries: none. To make it working
  296. # install python-enchant package..
  297. spelling-dict=
  298. # List of comma separated words that should not be checked.
  299. spelling-ignore-words=
  300. # A path to a file that contains private dictionary; one word per line.
  301. spelling-private-dict-file=
  302. # Tells whether to store unknown words to indicated private dictionary in
  303. # --spelling-private-dict-file option instead of raising a message.
  304. spelling-store-unknown-words=no
  305. [STRING]
  306. # This flag controls whether the implicit-str-concat-in-sequence should
  307. # generate a warning on implicit string concatenation in sequences defined over
  308. # several lines.
  309. check-str-concat-over-line-jumps=no
  310. [TYPECHECK]
  311. # List of decorators that produce context managers, such as
  312. # contextlib.contextmanager. Add to this list to register other decorators that
  313. # produce valid context managers.
  314. contextmanager-decorators=contextlib.contextmanager
  315. # List of members which are set dynamically and missed by pylint inference
  316. # system, and so shouldn't trigger E1101 when accessed. Python regular
  317. # expressions are accepted.
  318. generated-members=
  319. # Tells whether missing members accessed in mixin class should be ignored. A
  320. # mixin class is detected if its name ends with "mixin" (case insensitive).
  321. ignore-mixin-members=yes
  322. # Tells whether to warn about missing members when the owner of the attribute
  323. # is inferred to be None.
  324. ignore-none=yes
  325. # This flag controls whether pylint should warn about no-member and similar
  326. # checks whenever an opaque object is returned when inferring. The inference
  327. # can return multiple potential results while evaluating a Python object, but
  328. # some branches might not be evaluated, which results in partial inference. In
  329. # that case, it might be useful to still emit no-member and other checks for
  330. # the rest of the inferred objects.
  331. ignore-on-opaque-inference=yes
  332. # List of class names for which member attributes should not be checked (useful
  333. # for classes with dynamically set attributes). This supports the use of
  334. # qualified names.
  335. ignored-classes=optparse.Values,thread._local,_thread._local
  336. # List of module names for which member attributes should not be checked
  337. # (useful for modules/projects where namespaces are manipulated during runtime
  338. # and thus existing member attributes cannot be deduced by static analysis. It
  339. # supports qualified module names, as well as Unix pattern matching.
  340. ignored-modules=
  341. # Show a hint with possible names when a member name was not found. The aspect
  342. # of finding the hint is based on edit distance.
  343. missing-member-hint=yes
  344. # The minimum edit distance a name should have in order to be considered a
  345. # similar match for a missing member name.
  346. missing-member-hint-distance=1
  347. # The total number of similar names that should be taken in consideration when
  348. # showing a hint for a missing member.
  349. missing-member-max-choices=1
  350. [VARIABLES]
  351. # List of additional names supposed to be defined in builtins. Remember that
  352. # you should avoid defining new builtins when possible.
  353. additional-builtins=
  354. # Tells whether unused global variables should be treated as a violation.
  355. allow-global-unused-variables=yes
  356. # List of strings which can identify a callback function by name. A callback
  357. # name must start or end with one of those strings.
  358. callbacks=cb_,
  359. _cb
  360. # A regular expression matching the name of dummy variables (i.e. expected to
  361. # not be used).
  362. dummy-variables-rgx=_+$|(_[a-zA-Z0-9_]*[a-zA-Z0-9]+?$)|dummy|^ignored_|^unused_
  363. # Argument names that match this expression will be ignored. Default to name
  364. # with leading underscore.
  365. ignored-argument-names=_.*|^ignored_|^unused_
  366. # Tells whether we should check for unused import in __init__ files.
  367. init-import=no
  368. # List of qualified module names which can have objects that can redefine
  369. # builtins.
  370. redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io
  371. [CLASSES]
  372. # List of method names used to declare (i.e. assign) instance attributes.
  373. defining-attr-methods=__init__,
  374. __new__,
  375. setUp
  376. # List of member names, which should be excluded from the protected access
  377. # warning.
  378. exclude-protected=_asdict,
  379. _fields,
  380. _replace,
  381. _source,
  382. _make
  383. # List of valid names for the first argument in a class method.
  384. valid-classmethod-first-arg=cls
  385. # List of valid names for the first argument in a metaclass class method.
  386. valid-metaclass-classmethod-first-arg=cls
  387. [DESIGN]
  388. # Maximum number of arguments for function / method.
  389. max-args=5
  390. # Maximum number of attributes for a class (see R0902).
  391. max-attributes=7
  392. # Maximum number of boolean expressions in an if statement.
  393. max-bool-expr=5
  394. # Maximum number of branch for function / method body.
  395. max-branches=12
  396. # Maximum number of locals for function / method body.
  397. max-locals=15
  398. # Maximum number of parents for a class (see R0901).
  399. max-parents=7
  400. # Maximum number of public methods for a class (see R0904).
  401. max-public-methods=20
  402. # Maximum number of return / yield for function / method body.
  403. max-returns=6
  404. # Maximum number of statements in function / method body.
  405. max-statements=50
  406. # Minimum number of public methods for a class (see R0903).
  407. min-public-methods=2
  408. [IMPORTS]
  409. # Allow wildcard imports from modules that define __all__.
  410. allow-wildcard-with-all=no
  411. # Analyse import fallback blocks. This can be used to support both Python 2 and
  412. # 3 compatible code, which means that the block might have code that exists
  413. # only in one or another interpreter, leading to false positives when analysed.
  414. analyse-fallback-blocks=no
  415. # Deprecated modules which should not be used, separated by a comma.
  416. deprecated-modules=optparse,tkinter.tix
  417. # Create a graph of external dependencies in the given file (report RP0402 must
  418. # not be disabled).
  419. ext-import-graph=
  420. # Create a graph of every (i.e. internal and external) dependencies in the
  421. # given file (report RP0402 must not be disabled).
  422. import-graph=
  423. # Create a graph of internal dependencies in the given file (report RP0402 must
  424. # not be disabled).
  425. int-import-graph=
  426. # Force import order to recognize a module as part of the standard
  427. # compatibility libraries.
  428. known-standard-library=
  429. # Force import order to recognize a module as part of a third party library.
  430. known-third-party=enchant
  431. [EXCEPTIONS]
  432. # Exceptions that will emit a warning when being caught. Defaults to
  433. # "BaseException, Exception".
  434. overgeneral-exceptions=BaseException,
  435. Exception