diff --git a/.pylintrc b/.pylintrc index 855e51c551ab..b0c2a1e7c62e 100644 --- a/.pylintrc +++ b/.pylintrc @@ -3,7 +3,7 @@ # Analyse import fallback blocks. This can be used to support both Python 2 and # 3 compatible code, which means that the block might have code that exists # only in one or another interpreter, leading to false positives when analysed. -analyse-fallback-blocks=no +analyse-fallback-blocks=yes # Load and enable all available extensions. Use --list-extensions to see a list # all available extensions. @@ -57,7 +57,7 @@ ignore-patterns=^\.# # (useful for modules/projects where namespaces are manipulated during runtime # and thus existing member attributes cannot be deduced by static analysis). It # supports qualified module names, as well as Unix pattern matching. -ignored-modules= +ignored-modules=FreeCAD,FreeCADGui # Python code to execute, usually for sys.path manipulation such as # pygtk.require(). @@ -82,7 +82,7 @@ persistent=yes # Minimum Python version to use for version dependent checks. Will default to # the version used to run pylint. -py-version=3.10 +py-version=3.8 # Discover python modules and packages in the file system subtree. recursive=no @@ -352,7 +352,7 @@ ignored-parents= max-args=5 # Maximum number of attributes for a class (see R0902). -max-attributes=7 +max-attributes=15 # Maximum number of boolean expressions in an if statement (see R0916). max-bool-expr=5 @@ -376,14 +376,14 @@ max-returns=6 max-statements=50 # Minimum number of public methods for a class (see R0903). -min-public-methods=2 +min-public-methods=1 [EXCEPTIONS] # Exceptions that will emit a warning when caught. -overgeneral-exceptions=BaseException, - Exception +overgeneral-exceptions=builtins.BaseException, + builtins.Exception [FORMAT] @@ -426,7 +426,7 @@ allow-any-import-level= allow-wildcard-with-all=no # Deprecated modules which should not be used, separated by a comma. -deprecated-modules= +deprecated-modules=PySide2 # Output a graph (.gv or any supported image format) of external dependencies # to the given file (report RP0402 must not be disabled).