A multipurpose python flask API server and administration SPA
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.

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