Pylint¶
Pylint is a tool that checks for errors in Python code, tries to enforce a coding standard and looks for code smells. It can also look for certain type errors, it can recommend suggestions about how particular blocks can be refactored and can offer you details about the code’s complexity (from https://pylint.pycqa.org/en/latest/.)
We recommend using these tool for the PythonPart script development. The current version can be downloaded from https://pypi.org/project/pylint/.
In the Allplan installation, the file pylintrc (…\ETC\PythonPartsFramework) with the recommend rules for script development is available. These file can be added to the Visual Studio Code settings file like
"python.linting.pylintCategorySeverity.convention": "Warning",
"python.linting.pylintCategorySeverity.refactor": "Information",
"python.linting.pylintEnabled": true,
"python.linting.pylintArgs": ["--rcfile=xxx\\etc\\PythonPartsFramework\\pylintrc"],
by replacing xxx with the current etc path.