Federated calendar and event organiser
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.

.pylintrc 12KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. [MASTER]
  2. # Python code to execute, usually for sys.path manipulation such as
  3. # pygtk.require().
  4. #init-hook=
  5. # Pickle collected data for later comparisons.
  6. persistent=yes
  7. # List of plugins (as comma separated values of python modules names) to load,
  8. # usually to register additional checkers.
  9. load-plugins=pylint.extensions.bad_builtin,pylint.extensions.check_elif,pylint.extensions.comparetozero,pylint.extensions.docparams,pylint.extensions.docstyle,pylint.extensions.emptystring,pylint.extensions.overlapping_exceptions,pylint.extensions.redefined_variable_type,pylint.extensions.mccabe
  10. # Use multiple processes to speed up Pylint.
  11. jobs=2
  12. # Allow loading of arbitrary C extensions. Extensions are imported into the
  13. # active Python interpreter and may run arbitrary code.
  14. unsafe-load-any-extension=no
  15. # A comma-separated list of package or module names from where C extensions may
  16. # be loaded. Extensions are loading into the active Python interpreter and may
  17. # run arbitrary code
  18. extension-pkg-whitelist=
  19. # Allow optimization of some AST trees. This will activate a peephole AST
  20. # optimizer, which will apply various small optimizations. For instance, it can
  21. # be used to obtain the result of joining multiple strings with the addition
  22. # operator. Joining a lot of strings can lead to a maximum recursion error in
  23. # Pylint and this flag can prevent that. It has one side effect, the resulting
  24. # AST will be different than the one from reality. This option is deprecated
  25. # and it will be removed in Pylint 2.0.
  26. optimize-ast=no
  27. [MESSAGES CONTROL]
  28. enable=all
  29. disable=I,fixme,missing-yield-doc,missing-yield-type-doc
  30. [REPORTS]
  31. # Set the output format. Available formats are text, parseable, colorized, msvs
  32. # (visual studio) and html. You can also give a reporter class, eg
  33. # mypackage.mymodule.MyReporterClass.
  34. output-format=parseable
  35. # Put messages in a separate file for each module / package specified on the
  36. # command line instead of printing them on stdout. Reports (if any) will be
  37. # written in a file name "pylint_global.[txt|html]". This option is deprecated
  38. # and it will be removed in Pylint 2.0.
  39. files-output=no
  40. # Tells whether to display a full report or only the messages
  41. reports=yes
  42. # Python expression which should return a note less than 10 (10 is the highest
  43. # note). You have access to the variables errors warning, statement which
  44. # respectively contain the number of errors / warnings messages and the total
  45. # number of statements analyzed. This is used by the global evaluation report
  46. # (RP0004).
  47. evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
  48. [SIMILARITIES]
  49. # Minimum lines number of a similarity.
  50. min-similarity-lines=4
  51. # Ignore comments when computing similarities.
  52. ignore-comments=yes
  53. # Ignore docstrings when computing similarities.
  54. ignore-docstrings=yes
  55. # Ignore imports when computing similarities.
  56. ignore-imports=no
  57. [BASIC]
  58. # Good variable names which should always be accepted, separated by a comma
  59. good-names=app,db,security,users_roles
  60. # Bad variable names which should always be refused, separated by a comma
  61. bad-names=foo,bar,baz,toto,tutu,tata
  62. # Colon-delimited sets of names that determine each other's naming style when
  63. # the name regexes allow several styles.
  64. name-group=
  65. # Include a hint for the correct naming format with invalid-name
  66. include-naming-hint=yes
  67. # List of decorators that produce properties, such as abc.abstractproperty. Add
  68. # to this list to register other decorators that produce valid properties.
  69. property-classes=abc.abstractproperty,sqlalchemy.util.hybridproperty,alembic.op
  70. # Regular expression matching correct variable names
  71. variable-rgx=[a-z_][a-z0-9_]{2,30}$
  72. # Naming hint for variable names
  73. variable-name-hint=[a-z_][a-z0-9_]{2,30}$
  74. # Regular expression matching correct attribute names
  75. attr-rgx=[a-z_][a-z0-9_]{2,30}$
  76. # Naming hint for attribute names
  77. attr-name-hint=[a-z_][a-z0-9_]{2,30}$
  78. # Regular expression matching correct function names
  79. function-rgx=[a-z_][a-z0-9_]{2,30}$
  80. # Naming hint for function names
  81. function-name-hint=[a-z_][a-z0-9_]{2,30}$
  82. # Regular expression matching correct class names
  83. class-rgx=[A-Z_][a-zA-Z0-9]+$
  84. # Naming hint for class names
  85. class-name-hint=[A-Z_][a-zA-Z0-9]+$
  86. # Regular expression matching correct method names
  87. method-rgx=[a-z_][a-z0-9_]{2,30}$
  88. # Naming hint for method names
  89. method-name-hint=[a-z_][a-z0-9_]{2,30}$
  90. # Regular expression matching correct argument names
  91. argument-rgx=[a-z_][a-z0-9_]{2,30}$
  92. # Naming hint for argument names
  93. argument-name-hint=[a-z_][a-z0-9_]{2,30}$
  94. # Regular expression matching correct module names
  95. module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
  96. # Naming hint for module names
  97. module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
  98. # Regular expression matching correct class attribute names
  99. class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
  100. # Naming hint for class attribute names
  101. class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
  102. # Regular expression matching correct constant names
  103. const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
  104. # Naming hint for constant names
  105. const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$
  106. # Regular expression matching correct inline iteration names
  107. inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
  108. # Naming hint for inline iteration names
  109. inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$
  110. # Regular expression which should only match function or class names that do
  111. # not require a docstring.
  112. no-docstring-rgx=^_
  113. # Minimum line length for functions/classes that require docstrings, shorter
  114. # ones are exempt.
  115. docstring-min-length=-1
  116. [ELIF]
  117. # Maximum number of nested blocks for function / method body
  118. max-nested-blocks=5
  119. [VARIABLES]
  120. # Tells whether we should check for unused import in __init__ files.
  121. init-import=no
  122. # A regular expression matching the name of dummy variables (i.e. expectedly
  123. # not used).
  124. dummy-variables-rgx=(_+[a-zA-Z0-9]*?$)|dummy
  125. # List of additional names supposed to be defined in builtins. Remember that
  126. # you should avoid to define new builtins when possible.
  127. additional-builtins=
  128. # List of strings which can identify a callback function by name. A callback
  129. # name must start or end with one of those strings.
  130. callbacks=cb_,_cb
  131. # List of qualified module names which can have objects that can redefine
  132. # builtins.
  133. redefining-builtins-modules=six.moves,future.builtins
  134. [TYPECHECK]
  135. # Tells whether missing members accessed in mixin class should be ignored. A
  136. # mixin class is detected if its name ends with "mixin" (case insensitive).
  137. ignore-mixin-members=yes
  138. # List of module names for which member attributes should not be checked
  139. # (useful for modules/projects where namespaces are manipulated during runtime
  140. # and thus existing member attributes cannot be deduced by static analysis. It
  141. # supports qualified module names, as well as Unix pattern matching.
  142. ignored-modules=flask_sqlalchemy,sqlalchemy.orm.scoping,numpy
  143. # List of class names for which member attributes should not be checked (useful
  144. # for classes with dynamically set attributes). This supports the use of
  145. # qualified names.
  146. ignored-classes=optparse.Values,thread._local,_thread._local
  147. # List of members which are set dynamically and missed by pylint inference
  148. # system, and so shouldn't trigger E1101 when accessed. Python regular
  149. # expressions are accepted.
  150. generated-members=
  151. # List of decorators that produce context managers, such as
  152. # contextlib.contextmanager. Add to this list to register other decorators that
  153. # produce valid context managers.
  154. contextmanager-decorators=contextlib.contextmanager
  155. [LOGGING]
  156. # Logging modules to check that the string format arguments are in logging
  157. # function parameter format
  158. logging-modules=logging
  159. [MISCELLANEOUS]
  160. # List of note tags to take in consideration, separated by a comma.
  161. notes=FIXME,XXX,TODO
  162. [FORMAT]
  163. # Maximum number of characters on a single line.
  164. max-line-length=100
  165. # Regexp for a line that is allowed to be longer than the limit.
  166. ignore-long-lines=^\s*(# )?<?https?://\S+>?$
  167. # Allow the body of an if to be on the same line as the test if there is no
  168. # else.
  169. single-line-if-stmt=no
  170. # List of optional constructs for which whitespace checking is disabled. `dict-
  171. # separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
  172. # `trailing-comma` allows a space between comma and closing bracket: (a, ).
  173. # `empty-line` allows space-only lines.
  174. no-space-check=trailing-comma,dict-separator
  175. # Maximum number of lines in a module
  176. max-module-lines=1000
  177. # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
  178. # tab).
  179. indent-string=' '
  180. # Number of spaces of indent required inside a hanging or continued line.
  181. indent-after-paren=4
  182. # Expected format of line ending, e.g. empty (any line ending), LF or CRLF.
  183. expected-line-ending-format=
  184. [SPELLING]
  185. # Spelling dictionary name. Available dictionaries: none. To make it working
  186. # install python-enchant package.
  187. spelling-dict=
  188. # List of comma separated words that should not be checked.
  189. spelling-ignore-words=
  190. # A path to a file that contains private dictionary; one word per line.
  191. spelling-private-dict-file=
  192. # Tells whether to store unknown words to indicated private dictionary in
  193. # --spelling-private-dict-file option instead of raising a message.
  194. spelling-store-unknown-words=no
  195. [DESIGN]
  196. # Maximum number of arguments for function / method
  197. max-args=5
  198. # Argument names that match this expression will be ignored. Default to name
  199. # with leading underscore
  200. ignored-argument-names=_.*
  201. # Maximum number of locals for function / method body
  202. max-locals=15
  203. # Maximum number of return / yield for function / method body
  204. max-returns=6
  205. # Maximum number of branch for function / method body
  206. max-branches=12
  207. # Maximum number of statements in function / method body
  208. max-statements=50
  209. # Maximum number of parents for a class (see R0901).
  210. max-parents=7
  211. # Maximum number of attributes for a class (see R0902).
  212. max-attributes=7
  213. # Minimum number of public methods for a class (see R0903).
  214. min-public-methods=2
  215. # Maximum number of public methods for a class (see R0904).
  216. max-public-methods=20
  217. # Maximum number of boolean expressions in a if statement
  218. max-bool-expr=5
  219. [CLASSES]
  220. # List of method names used to declare (i.e. assign) instance attributes.
  221. defining-attr-methods=__init__,__new__,setUp
  222. # List of valid names for the first argument in a class method.
  223. valid-classmethod-first-arg=cls
  224. # List of valid names for the first argument in a metaclass class method.
  225. valid-metaclass-classmethod-first-arg=mcs
  226. # List of member names, which should be excluded from the protected access
  227. # warning.
  228. exclude-protected=_asdict,_fields,_replace,_source,_make
  229. [IMPORTS]
  230. # Deprecated modules which should not be used, separated by a comma
  231. deprecated-modules=optparse
  232. # Create a graph of every (i.e. internal and external) dependencies in the
  233. # given file (report RP0402 must not be disabled)
  234. import-graph=
  235. # Create a graph of external dependencies in the given file (report RP0402 must
  236. # not be disabled)
  237. ext-import-graph=
  238. # Create a graph of internal dependencies in the given file (report RP0402 must
  239. # not be disabled)
  240. int-import-graph=
  241. # Force import order to recognize a module as part of the standard
  242. # compatibility libraries.
  243. known-standard-library=
  244. # Force import order to recognize a module as part of a third party library.
  245. known-third-party=enchant,numpy
  246. # Analyse import fallback blocks. This can be used to support both Python 2 and
  247. # 3 compatible code, which means that the block might have code that exists
  248. # only in one or another interpreter, leading to false positives when analysed.
  249. analyse-fallback-blocks=no
  250. [EXCEPTIONS]
  251. # Exceptions that will emit a warning when being caught. Defaults to
  252. # "Exception"
  253. overgeneral-exceptions=Exception