@@ -322,10 +322,19 @@ function-naming-style = "snake_case"
322322
323323# Regular expression matching correct function names. Overrides function-naming-
324324# style. If left empty, function names will be checked with the set naming style.
325- function-rgx = " [a-z_][a-z0-9_]{2,30 }$"
325+ function-rgx = " [a-z_][a-z0-9_]{2,}$"
326326
327327# Good variable names which should always be accepted, separated by a comma.
328- good-names = [" i" , " j" , " k" , " ex" , " Run" , " _" ]
328+ good-names = [
329+ " f" , # use for file handles
330+ " i" , " j" , " k" , # use for loops
331+ " df" , # use for pyspark.sql.DataFrame
332+ " ex" , " e" , # use for exceptions
333+ " fn" , " cb" , # use for callbacks
334+ " _" , # use for ignores
335+ " a" , # use for databricks.sdk.AccountClient
336+ " w" , " ws" # use for databricks.sdk.WorkspaceClient
337+ ]
329338
330339# Good variable names regexes, separated by a comma. If names match any regex,
331340# they will always be accepted
@@ -537,22 +546,12 @@ confidence = ["HIGH", "CONTROL_FLOW", "INFERENCE", "INFERENCE_FAILURE", "UNDEFIN
537546# no Warning level messages displayed, use "--disable=all --enable=classes
538547# --disable=W".
539548disable = [
540- " raw-checker-failed" ,
541- " bad-inline-option" ,
542- " locally-disabled" ,
543- " file-ignored" ,
544- " suppressed-message" ,
545- " deprecated-pragma" ,
546- " use-implicit-booleaness-not-comparison-to-string" ,
547- " use-implicit-booleaness-not-comparison-to-zero" ,
548549 " consider-using-augmented-assign" ,
549550 " prefer-typing-namedtuple" ,
550551 " attribute-defined-outside-init" ,
551- " invalid-name" ,
552552 " missing-module-docstring" ,
553553 " missing-class-docstring" ,
554554 " missing-function-docstring" ,
555- # "protected-access", # TODO: enable back
556555 " too-few-public-methods" ,
557556 " line-too-long" ,
558557 " too-many-lines" ,
0 commit comments