diff options
| author | Ian Rogers <irogers@google.com> | 2026-09-25 23:19:41 -0700 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2026-09-26 20:49:28 +0200 |
| commit | 5fe83fb352c8d50fadd814228ae1022d34073d60 (patch) | |
| tree | c88a6896c9d36e26b1bf1dcddb3ce3d232c243de /tools/perf/python | |
| parent | b3e9c396d0acab27e6fd52edbb67f01ef0465782 (diff) | |
| download | linux-next-5fe83fb352c8d50fadd814228ae1022d34073d60.tar.gz linux-next-5fe83fb352c8d50fadd814228ae1022d34073d60.zip | |
perf build: Make pylint build test opt-out (NO_PYLINT=1)
Commit 8a54784e708b ("perf build: Add pylint build tests") added a
compile-time pylint check for Python files in tools/perf, but left it
opt-in via PYLINT=1.
Now that pylint issues across tools/perf/python, tools/perf/pmu-events,
and tools/perf/tests/shell/lib have been cleaned up, enable the pylint
check by default when pylint is installed on the system, with an opt-out
via NO_PYLINT=1 (matching NO_SHELLCHECK=1, NO_MYPY=1, and other perf
build feature flags).
Configure PYTHONPATH in Makefile.perf so pylint resolves perf.pyi type
stubs and pmu-events modules, enable error and warning categories
(--disable=all --enable=E,W --disable=W0123,W0311,W0511,W0603,W0622,W0718
--ignored-modules=textual,setproctitle) appropriate for perf's standalone
CLI and test scripts, and require pylint >= 2.16.0 (skipping with a
warning if an older version is installed).
Assisted-by: Antigravity:gemini-3.1-pro
Signed-off-by: Ian Rogers <irogers@google.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/python')
0 files changed, 0 insertions, 0 deletions
