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.
 
 
 
 

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