From 2aa4a82499d4becd2284cdb482213d541b8804dd Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 28 Apr 2024 16:29:10 +0200 Subject: Adding upstream version 86.0.1. Signed-off-by: Daniel Baumann --- docs/code-quality/lint/linters/pylint.rst | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 docs/code-quality/lint/linters/pylint.rst (limited to 'docs/code-quality/lint/linters/pylint.rst') diff --git a/docs/code-quality/lint/linters/pylint.rst b/docs/code-quality/lint/linters/pylint.rst new file mode 100644 index 0000000000..603f80516a --- /dev/null +++ b/docs/code-quality/lint/linters/pylint.rst @@ -0,0 +1,33 @@ +pylint +====== + +`pylint `__ is a popular linter for python. It is now the default python +linter in VS Code. + +Please note that we also have :ref:`Flake8` available as a linter. + +Run Locally +----------- + +The mozlint integration of pylint can be run using mach: + +.. parsed-literal:: + + $ mach lint --linter pylint + + + +Configuration +------------- + +To enable pylint on new directory, add the path to the include +section in the `pylint.yml `_ file. + +We enabled the same Pylint rules as `VS Code `_. +See in `pylint.py `_ for the full list + +Sources +------- + +* `Configuration (YAML) `_ +* `Source `_ -- cgit v1.2.3