Skip to content

howto pylint

Ludovico Bianchi edited this page Jun 14, 2023 · 1 revision

Pylint How-Tos

Enable or disable specific messages (checks) globally

  1. Find the Pylint version used for FOQUS by looking in requirements-dev.txt (at the moment of writing, this is 2.14.2)
  2. Go to the Pylint online documentation and select the closest version among those available (at the moment of writing, this is 2.14.5: https://pylint.readthedocs.io/en/v2.14.5)
  3. Navigate to (or search for, since the structure seems to change for different versions) the messages reference section, e.g. https://pylint.readthedocs.io/en/v2.14.5/user_guide/messages/
  4. Locate the message you're interested in. Some messages are simple, while others, e.g. invalid-name, are more complex and can be further customized (in addition to being enabled/disabled) via configuration parameters

Enforce naming styles for variables

The corresponding message is invalid-name