patman: Correct pylint errors

Fix pylint errors that can be fixed and mask those that seem to be
incorrect.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2022-02-11 13:23:18 -07:00
committed by Tom Rini
parent f9a719e295
commit 32cc6ae273
11 changed files with 39 additions and 33 deletions

View File

@@ -77,4 +77,15 @@ If the pylint version is updated in CI, this may result in needing to regenerate
`scripts/pylint.base`.
Checking for errors
-------------------
If you only want to check for pylint errors, use::
PYTHONPATH=/path/to/scripts/dtc/pylibfdt/ make pylint_err
This will show only pylint errors. Note that you must set PYTHONPATH to point
to the pylibfdt directory build by U-Boot (typically the sandbox_spl board). If
you have used `make qcheck` then it sill be in `board-sandbox_spl`.
.. _`PEP 8`: https://www.python.org/dev/peps/pep-0008/