/neatx/pylintrc

http://neatx.googlecode.com/ · #! · 78 lines · 67 code · 11 blank · 0 comment · 0 complexity · ff06dae71c012a76766244ab0613cfb6 MD5 · raw file

  1. # Configuration file for pylint (http://www.logilab.org/project/pylint). See
  2. # http://www.logilab.org/card/pylintfeatures for more detailed variable
  3. # descriptions.
  4. [MASTER]
  5. profile = no
  6. ignore =
  7. persistent = no
  8. cache-size = 50000
  9. load-plugins =
  10. [REPORTS]
  11. output-format = colorized
  12. include-ids = no
  13. files-output = no
  14. reports = no
  15. evaluation = 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
  16. comment = yes
  17. [BASIC]
  18. required-attributes =
  19. no-docstring-rgx = __.*__
  20. module-rgx = (([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
  21. const-rgx = ((_{0,2}[A-Z][A-Z0-9_]*)|(__.*__))$
  22. class-rgx = _?[A-Z][a-zA-Z0-9]+$
  23. function-rgx = (_?([A-Z]+[a-z0-9]+([A-Z]+[a-z0-9]*)*)|main)$
  24. method-rgx = (_{0,2}[A-Z]+[a-z0-9]+([A-Z]+[a-z0-9]*)*|__.*__)$
  25. attr-rgx = [a-z_][a-z0-9_]{1,30}$
  26. argument-rgx = [a-z_][a-z0-9_]*$
  27. variable-rgx = (_?([a-z_][a-z0-9_]*)|([A-Z0-9_]+))$
  28. inlinevar-rgx = [A-Za-z_][A-Za-z0-9_]*$
  29. good-names = i,j,k,_
  30. bad-names = foo,bar,baz,toto,tutu,tata
  31. bad-functions =
  32. [TYPECHECK]
  33. ignore-mixin-members = yes
  34. zope = no
  35. acquired-members =
  36. [VARIABLES]
  37. init-import = no
  38. dummy-variables-rgx = _
  39. additional-builtins =
  40. [CLASSES]
  41. ignore-iface-methods =
  42. defining-attr-methods = __init__,__new__,setUp
  43. [DESIGN]
  44. max-args = 6
  45. max-locals = 15
  46. max-returns = 6
  47. max-branchs = 12
  48. max-statements = 50
  49. max-parents = 7
  50. max-attributes = 7
  51. min-public-methods = 2
  52. max-public-methods = 20
  53. [IMPORTS]
  54. deprecated-modules = regsub,string,TERMIOS,Bastion,rexec
  55. import-graph =
  56. ext-import-graph =
  57. int-import-graph =
  58. [FORMAT]
  59. max-line-length = 80
  60. max-module-lines = 1000
  61. indent-string = " "
  62. [MISCELLANEOUS]
  63. notes = FIXME,XXX,TODO
  64. [SIMILARITIES]
  65. min-similarity-lines = 4
  66. ignore-comments = yes
  67. ignore-docstrings = yes