public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH 0/6] Add a pylint check
@ 2021-11-22  3:48 Simon Glass
  2021-11-22  3:48 ` [PATCH 1/6] .gitignore: Ignore any html coverage directory Simon Glass
                   ` (5 more replies)
  0 siblings, 6 replies; 18+ messages in thread
From: Simon Glass @ 2021-11-22  3:48 UTC (permalink / raw)
  To: U-Boot Mailing List
  Cc: Tom Rini, Heinrich Schuchardt, Simon Glass, Alper Nebi Yasak,
	Bin Meng, Daniel Schwierzeck, Kristian Amlie, Marek Behún,
	Masahiro Yamada, Pali Rohár

U-Boot has about 60k lines of Python code. This is quite small relative
to the total code size, but it is still important to keep the code style
consistent.

This series allows pylint to be run on Python files within U-Boot to
detect any changes that reduce the current pylint ‘score’ of any modules.
It works by comparing the current state against a base state kept in a
file.

The check is invoked with:

   make pylint

This should gradually help to improve the code.

The series also tidies up a few minor nits to produce better pylint
output.


Simon Glass (6):
  .gitignore: Ignore any html coverage directory
  dtoc: Fix up a code comment that confuses pylint
  patman: Update the list of modules
  tools: Add init files for Python tools
  Makefile: Add a pylint checker to the build
  Azure/GitLab CI: Add the pylint checker

 .azure-pipelines.yml       |  17 +++
 .gitignore                 |   7 ++
 .gitlab-ci.yml             |  12 +++
 Makefile                   |  45 +++++++-
 doc/develop/index.rst      |   8 ++
 doc/develop/python_cq.rst  |  80 ++++++++++++++
 scripts/pylint.base        | 211 +++++++++++++++++++++++++++++++++++++
 tools/binman/__init__.py   |   0
 tools/buildman/__init__.py |   0
 tools/dtoc/__init__.py     |   0
 tools/dtoc/dtb_platdata.py |   2 +-
 tools/patman/__init__.py   |   9 +-
 12 files changed, 386 insertions(+), 5 deletions(-)
 create mode 100644 doc/develop/python_cq.rst
 create mode 100644 scripts/pylint.base
 create mode 100644 tools/binman/__init__.py
 create mode 100644 tools/buildman/__init__.py
 create mode 100644 tools/dtoc/__init__.py

-- 
2.34.0.rc2.393.gf8c9666880-goog


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2022-01-25 15:57 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-22  3:48 [PATCH 0/6] Add a pylint check Simon Glass
2021-11-22  3:48 ` [PATCH 1/6] .gitignore: Ignore any html coverage directory Simon Glass
2022-01-25 15:56   ` Tom Rini
2021-11-22  3:48 ` [PATCH 2/6] dtoc: Fix up a code comment that confuses pylint Simon Glass
2021-11-22  6:45   ` Heinrich Schuchardt
2022-01-25 15:56   ` Tom Rini
2021-11-22  3:48 ` [PATCH 3/6] patman: Update the list of modules Simon Glass
2022-01-25 15:56   ` Tom Rini
2021-11-22  3:48 ` [PATCH 4/6] tools: Add init files for Python tools Simon Glass
2022-01-25 15:56   ` Tom Rini
2021-11-22  3:48 ` [PATCH 5/6] Makefile: Add a pylint checker to the build Simon Glass
2021-11-22  8:05   ` Heinrich Schuchardt
2021-11-25  0:13     ` Simon Glass
2022-01-25 15:56   ` Tom Rini
2022-01-25 15:57   ` Tom Rini
2021-11-22  3:48 ` [PATCH 6/6] Azure/GitLab CI: Add the pylint checker Simon Glass
2021-11-22  7:40   ` Heinrich Schuchardt
2021-11-25  0:13     ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox