27.14. Pylint Integration

MATE has Pylint integration: Python files are automatically checked for errors with Pylint if Pylint is installed for Python in the user's Python package directory. (This is not the system's Python package directory!)

27.14.1. Installation

Installation of Pylint can be done with the pip tool, e.g., from a Python installation with the command line pip install --user pylint or from the Preferences dialog of MATE in the Python section:

[Note]Note

Automatic installation from the Preferences dialog requires an Internet connection.

Python code checking can be disabled from the preferences even if Pylint is installed. You can also configure which checks should be suppressed (see the Pylint message documentation for this); code convention warnings, recommendations, and some other warnings are not displayed by default.

27.14.2. Usage

Pylint checks are performed automatically on Python code when Pylint is installed and activated. Results are displayed on the left side of the text file and indicated on the right side of the scroll bar for a complete overview. Result symbols are displayed according to the highest message category for that line, and the tooltip for each symbol contains the error message(s) for that line:

Below the Python text, an indicator displays the total number of messages generated by Pylint. Clicking this indicator will jump to the next result in the text. A tooltip will show how much time was spent in the last check run.

A busy indicator will be shown in this place while a Pylint check is performed.

[Note]Note

The Pylint integration is not perfect, and Pylint may not interpret the code in the same way as MeVisLab, which means it might raise complaints about unknown identifiers even if the code executes without issues in MeVisLab.

[Note]Note

Pylint runs continuously while the currently edited Python file changes, and the process will run at full steam in the background. If your computer has only one available CPU core, you may not want to use this feature.