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. 30 #enable= 31 32 # Disable the message, report, category or checker with the given id(s). You 33 # can either give multiple identifier separated by comma (,) or put this option 34 # multiple time (only on the command line, not in the configuration file where 35 # it should appear only once). 36 disable=E1101,C0111 37 38 39 [REPORTS] 40 41 # Set the output format. Available formats are text, parseable, colorized, msvs 42 # (visual studio) and html. You can also give a reporter class, eg 43 # mypackage.mymodule.MyReporterClass. 44 output-format=parseable 45 46 # Include message's id in output 47 include-ids=yes 48 49 # Include symbolic ids of messages in output 50 symbols=no 51 52 # Put messages in a separate file for each module / package specified on the 53 # command line instead of printing them on stdout. Reports (if any) will be 54 # written in a file name "pylint_global.[txt|html]". 55 files-output=no 56 57 # Tells whether to display a full report or only the messages 58 reports=no 59 60 # Python expression which should return a note less than 10 (10 is the highest 61 # note). You have access to the variables errors warning, statement which 62 # respectively contain the number of errors / warnings messages and the total 63 # number of statements analyzed. This is used by the global evaluation report 64 # (RP0004). 65 evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) 66 67 # Add a comment according to your evaluation note. This is used by the global 68 # evaluation report (RP0004). 69 comment=no 70 71 72 [MISCELLANEOUS] 73 74 # List of note tags to take in consideration, separated by a comma. 75 notes=FIXME,XXX,TODO 76 77 78 [BASIC] 79 80 # Required attributes for module, separated by a comma 81 required-attributes= 82 83 # List of builtins function names that should not be used, separated by a comma 84 bad-functions=map,filter,apply,input 85 86 # Regular expression which should only match correct module names 87 module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ 88 89 # Regular expression which should only match correct module level names 90 const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$ 91 92 # Regular expression which should only match correct class names 93 class-rgx=[A-Z_][a-zA-Z0-9]+$ 94 95 # Regular expression which should only match correct function names 96 function-rgx=[a-z_][a-z0-9_]{2,30}$ 97 98 # Regular expression which should only match correct method names 99 method-rgx=[a-z_][a-z0-9_]{2,30}|visit_[A-Za-z]+$ 100 101 # Regular expression which should only match correct instance attribute names 102 attr-rgx=[a-z_][a-z0-9_]{2,30}$ 103 104 # Regular expression which should only match correct argument names 105 argument-rgx=[a-z_][a-z0-9_]{2,30}$ 106 107 # Regular expression which should only match correct variable names 108 variable-rgx=[a-z_][a-z0-9_]{2,30}$ 109 110 # Regular expression which should only match correct list comprehension / 111 # generator expression variable names 112 inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ 113 114 # Good variable names which should always be accepted, separated by a comma 115 good-names=i,j,k,ex,Run,_ 116 117 # Bad variable names which should always be refused, separated by a comma 118 bad-names=foo,bar,baz,toto,tutu,tata 119 120 # Regular expression which should only match functions or classes name which do 121 # not require a docstring 122 no-docstring-rgx=__.*__ 123 124 125 [FORMAT] 126 127 # Maximum number of characters on a single line. 128 max-line-length=120 129 130 # Maximum number of lines in a module 131 max-module-lines=15000 132 133 # String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 134 # tab). 135 indent-string=' ' 136 137 138 [SIMILARITIES] 139 140 # Minimum lines number of a similarity. 141 min-similarity-lines=4 142 143 # Ignore comments when computing similarities. 144 ignore-comments=yes 145 146 # Ignore docstrings when computing similarities. 147 ignore-docstrings=yes 148 149 # Ignore imports when computing similarities. 150 ignore-imports=no 151 152 153 [TYPECHECK] 154 155 # Tells whether missing members accessed in mixin class should be ignored. A 156 # mixin class is detected if its name ends with "mixin" (case insensitive). 157 ignore-mixin-members=yes 158 159 # List of classes names for which member attributes should not be checked 160 # (useful for classes with attributes dynamically set). 161 ignored-classes=SQLObject 162 163 # When zope mode is activated, add a predefined set of Zope acquired attributes 164 # to generated-members. 165 zope=no 166 167 # List of members which are set dynamically and missed by pylint inference 168 # system, and so shouldn't trigger E0201 when accessed. Python regular 169 # expressions are accepted. 170 generated-members=REQUEST,acl_users,aq_parent 171 172 173 [VARIABLES] 174 175 # Tells whether we should check for unused import in __init__ files. 176 init-import=no 177 178 # A regular expression matching the beginning of the name of dummy variables 179 # (i.e. not used). 180 dummy-variables-rgx=_|dummy 181 182 # List of additional names supposed to be defined in builtins. Remember that 183 # you should avoid to define new builtins when possible. 184 additional-builtins= 185 186 187 [IMPORTS] 188 189 # Deprecated modules which should not be used, separated by a comma 190 deprecated-modules=regsub,string,TERMIOS,Bastion,rexec 191 192 # Create a graph of every (i.e. internal and external) dependencies in the 193 # given file (report RP0402 must not be disabled) 194 import-graph= 195 196 # Create a graph of external dependencies in the given file (report RP0402 must 197 # not be disabled) 198 ext-import-graph= 199 200 # Create a graph of internal dependencies in the given file (report RP0402 must 201 # not be disabled) 202 int-import-graph= 203 204 205 [DESIGN] 206 207 # Maximum number of arguments for function / method 208 max-args=5 209 210 # Argument names that match this expression will be ignored. Default to name 211 # with leading underscore 212 ignored-argument-names=_.* 213 214 # Maximum number of locals for function / method body 215 max-locals=15 216 217 # Maximum number of return / yield for function / method body 218 max-returns=6 219 220 # Maximum number of branch for function / method body 221 max-branchs=12 222 223 # Maximum number of statements in function / method body 224 max-statements=50 225 226 # Maximum number of parents for a class (see R0901). 227 max-parents=7 228 229 # Maximum number of attributes for a class (see R0902). 230 max-attributes=7 231 232 # Minimum number of public methods for a class (see R0903). 233 min-public-methods=2 234 235 # Maximum number of public methods for a class (see R0904). 236 max-public-methods=20 237 238 239 [CLASSES] 240 241 # List of interface methods to ignore, separated by a comma. This is used for 242 # instance to not check methods defines in Zope's Interface base class. 243 ignore-iface-methods=isImplementedBy,deferred,extends,names,namesAndDescriptions,queryDescriptionFor,getBases,getDescriptionFor,getDoc,getName,getTaggedValue,getTaggedValueTags,isEqualOrExtendedBy,setTaggedValue,isImplementedByInstancesOf,adaptWith,is_implemented_by 244 245 # List of method names used to declare (i.e. assign) instance attributes. 246 defining-attr-methods=__init__,__new__,setUp 247 248 # List of valid names for the first argument in a class method. 249 valid-classmethod-first-arg=cls 250 251 # List of valid names for the first argument in a metaclass class method. 252 valid-metaclass-classmethod-first-arg=mcs 253 254 255 [EXCEPTIONS] 256 257 # Exceptions that will emit a warning when being caught. Defaults to 258 # "Exception" 259 overgeneral-exceptions=Exception 260