25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

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