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