Advertisement
Guest User

pylintrc

a guest
Apr 25th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.22 KB | None | 0 0
  1. [MASTER]
  2.  
  3. # Specify a configuration file.
  4. #rcfile=
  5.  
  6. # Python code to execute, usually for sys.path manipulation such as
  7. # pygtk.require().
  8. #init-hook=
  9.  
  10. # Profiled execution.
  11. profile=no
  12.  
  13. # Add files or directories to the blacklist. They should be base names, not
  14. # paths.
  15. ignore=CVS
  16.  
  17. # Pickle collected data for later comparisons.
  18. persistent=yes
  19.  
  20. # List of plugins (as comma separated values of python modules names) to load,
  21. # usually to register additional checkers.
  22. load-plugins=
  23.  
  24.  
  25. [MESSAGES CONTROL]
  26.  
  27. # Enable the message, report, category or checker with the given id(s). You can
  28. # either give multiple identifier separated by comma (,) or put this option
  29. # multiple time. See also the "--disable" option for examples.
  30. #enable=
  31.  
  32. # Disable the message, report, category or checker with the given id(s). You
  33. # can either give multiple identifiers separated by comma (,) or put this
  34. # option multiple times (only on the command line, not in the configuration
  35. # file where it should appear only once).You can also use "--disable=all" to
  36. # disable everything first and then reenable specific checks. For example, if
  37. # you want to run only the similarities checker, you can use "--disable=all
  38. # --enable=similarities". If you want to run only the classes checker, but have
  39. # no Warning level messages displayed, use"--disable=all --enable=classes
  40. # --disable=W"
  41. #disable=
  42.  
  43.  
  44. [REPORTS]
  45.  
  46. # Set the output format. Available formats are text, parseable, colorized, msvs
  47. # (visual studio) and html. You can also give a reporter class, eg
  48. # mypackage.mymodule.MyReporterClass.
  49. output-format=text
  50.  
  51. # Put messages in a separate file for each module / package specified on the
  52. # command line instead of printing them on stdout. Reports (if any) will be
  53. # written in a file name "pylint_global.[txt|html]".
  54. files-output=no
  55.  
  56. # Tells whether to display a full report or only the messages
  57. reports=yes
  58.  
  59. # Python expression which should return a note less than 10 (10 is the highest
  60. # note). You have access to the variables errors warning, statement which
  61. # respectively contain the number of errors / warnings messages and the total
  62. # number of statements analyzed. This is used by the global evaluation report
  63. # (RP0004).
  64. evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
  65.  
  66. # Add a comment according to your evaluation note. This is used by the global
  67. # evaluation report (RP0004).
  68. comment=no
  69.  
  70. # Template used to display messages. This is a python new-style format string
  71. # used to format the message information. See doc for all details
  72. #msg-template=
  73.  
  74.  
  75. [VARIABLES]
  76.  
  77. # Tells whether we should check for unused import in __init__ files.
  78. init-import=no
  79.  
  80. # A regular expression matching the beginning of the name of dummy variables
  81. # (i.e. not used).
  82. dummy-variables-rgx=_$|dummy
  83.  
  84. # List of additional names supposed to be defined in builtins. Remember that
  85. # you should avoid to define new builtins when possible.
  86. additional-builtins=
  87.  
  88.  
  89. [FORMAT]
  90.  
  91. # Maximum number of characters on a single line.
  92. max-line-length=80
  93.  
  94. # Regexp for a line that is allowed to be longer than the limit.
  95. ignore-long-lines=^\s*(# )?<?https?://\S+>?$
  96.  
  97. # Allow the body of an if to be on the same line as the test if there is no
  98. # else.
  99. single-line-if-stmt=no
  100.  
  101. # List of optional constructs for which whitespace checking is disabled
  102. no-space-check=trailing-comma,dict-separator
  103.  
  104. # Maximum number of lines in a module
  105. max-module-lines=1000
  106.  
  107. # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1
  108. # tab).
  109. indent-string=' '
  110.  
  111.  
  112. [BASIC]
  113.  
  114. # Required attributes for module, separated by a comma
  115. required-attributes=
  116.  
  117. # List of builtins function names that should not be used, separated by a comma
  118. bad-functions=map,filter,apply,input
  119.  
  120. # Regular expression which should only match correct module names
  121. module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
  122.  
  123. # Regular expression which should only match correct module level names
  124. const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
  125.  
  126. # Regular expression which should only match correct class names
  127. class-rgx=[A-Z_][a-zA-Z0-9]+$
  128.  
  129. # Regular expression which should only match correct function names
  130. function-rgx=[a-z_][a-z0-9_]{2,30}$
  131.  
  132. # Regular expression which should only match correct method names
  133. method-rgx=[a-z_][a-z0-9_]{2,30}$
  134.  
  135. # Regular expression which should only match correct instance attribute names
  136. attr-rgx=[a-z_][a-z0-9_]{2,30}$
  137.  
  138. # Regular expression which should only match correct argument names
  139. argument-rgx=[a-z_][a-z0-9_]{2,30}$
  140.  
  141. # Regular expression which should only match correct variable names
  142. variable-rgx=[a-z_][a-z0-9_]{2,30}$
  143.  
  144. # Regular expression which should only match correct attribute names in class
  145. # bodies
  146. class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$
  147.  
  148. # Regular expression which should only match correct list comprehension /
  149. # generator expression variable names
  150. inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$
  151.  
  152. # Good variable names which should always be accepted, separated by a comma
  153. good-names=i,j,k,ex,Run,_
  154.  
  155. # Bad variable names which should always be refused, separated by a comma
  156. bad-names=foo,bar,baz,toto,tutu,tata
  157.  
  158. # Regular expression which should only match function or class names that do
  159. # not require a docstring.
  160. no-docstring-rgx=__.*__
  161.  
  162. # Minimum line length for functions/classes that require docstrings, shorter
  163. # ones are exempt.
  164. docstring-min-length=-1
  165.  
  166.  
  167. [SIMILARITIES]
  168.  
  169. # Minimum lines number of a similarity.
  170. min-similarity-lines=4
  171.  
  172. # Ignore comments when computing similarities.
  173. ignore-comments=yes
  174.  
  175. # Ignore docstrings when computing similarities.
  176. ignore-docstrings=yes
  177.  
  178. # Ignore imports when computing similarities.
  179. ignore-imports=no
  180.  
  181.  
  182. [MISCELLANEOUS]
  183.  
  184. # List of note tags to take in consideration, separated by a comma.
  185. notes=FIXME,XXX,TODO
  186.  
  187.  
  188. [TYPECHECK]
  189.  
  190. # Tells whether missing members accessed in mixin class should be ignored. A
  191. # mixin class is detected if its name ends with "mixin" (case insensitive).
  192. ignore-mixin-members=yes
  193.  
  194. # List of classes names for which member attributes should not be checked
  195. # (useful for classes with attributes dynamically set).
  196. ignored-classes=SQLObject
  197.  
  198. # When zope mode is activated, add a predefined set of Zope acquired attributes
  199. # to generated-members.
  200. zope=no
  201.  
  202. # List of members which are set dynamically and missed by pylint inference
  203. # system, and so shouldn't trigger E0201 when accessed. Python regular
  204. # expressions are accepted.
  205. generated-members=REQUEST,acl_users,aq_parent
  206.  
  207.  
  208. [DESIGN]
  209.  
  210. # Maximum number of arguments for function / method
  211. max-args=5
  212.  
  213. # Argument names that match this expression will be ignored. Default to name
  214. # with leading underscore
  215. ignored-argument-names=_.*
  216.  
  217. # Maximum number of locals for function / method body
  218. max-locals=15
  219.  
  220. # Maximum number of return / yield for function / method body
  221. max-returns=6
  222.  
  223. # Maximum number of branch for function / method body
  224. max-branches=12
  225.  
  226. # Maximum number of statements in function / method body
  227. max-statements=50
  228.  
  229. # Maximum number of parents for a class (see R0901).
  230. max-parents=7
  231.  
  232. # Maximum number of attributes for a class (see R0902).
  233. max-attributes=7
  234.  
  235. # Minimum number of public methods for a class (see R0903).
  236. min-public-methods=2
  237.  
  238. # Maximum number of public methods for a class (see R0904).
  239. max-public-methods=20
  240.  
  241.  
  242. [CLASSES]
  243.  
  244. # List of interface methods to ignore, separated by a comma. This is used for
  245. # instance to not check methods defines in Zope's Interface base class.
  246. ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by
  247.  
  248. # List of method names used to declare (i.e. assign) instance attributes.
  249. defining-attr-methods=__init__,__new__,setUp
  250.  
  251. # List of valid names for the first argument in a class method.
  252. valid-classmethod-first-arg=cls
  253.  
  254. # List of valid names for the first argument in a metaclass class method.
  255. valid-metaclass-classmethod-first-arg=mcs
  256.  
  257.  
  258. [IMPORTS]
  259.  
  260. # Deprecated modules which should not be used, separated by a comma
  261. deprecated-modules=regsub,TERMIOS,Bastion,rexec
  262.  
  263. # Create a graph of every (i.e. internal and external) dependencies in the
  264. # given file (report RP0402 must not be disabled)
  265. import-graph=
  266.  
  267. # Create a graph of external dependencies in the given file (report RP0402 must
  268. # not be disabled)
  269. ext-import-graph=
  270.  
  271. # Create a graph of internal dependencies in the given file (report RP0402 must
  272. # not be disabled)
  273. int-import-graph=
  274.  
  275.  
  276. [EXCEPTIONS]
  277.  
  278. # Exceptions that will emit a warning when being caught. Defaults to
  279. # "Exception"
  280. overgeneral-exceptions=Exception
  281.  
  282.  
  283. [MESSAGE CONTROL]
  284.  
  285. # Enable the message, report, category or checker with the given id(s). You can
  286. # either give multiple identifier separated by comma (,) or put this option
  287. # multiple time.
  288. #enable=
  289.  
  290. # Disable the message, report, category or checker with the given id(s). You
  291. # can either give multiple identifier separated by comma (,) or put this option
  292. # multiple time (only on the command line, not in the configuration file where
  293. # it should appear only once).
  294.  
  295. disable=line-too-long
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement