Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 
 
 

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