From: Ian Rogers <irogers@google.com>
To: Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@redhat.com>,
Arnaldo Carvalho de Melo <acme@kernel.org>,
Namhyung Kim <namhyung@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Alexander Shishkin <alexander.shishkin@linux.intel.com>,
Jiri Olsa <jolsa@kernel.org>, Ian Rogers <irogers@google.com>,
Adrian Hunter <adrian.hunter@intel.com>,
Kan Liang <kan.liang@linux.intel.com>,
James Clark <james.clark@linaro.org>,
Charlie Jenkins <charlie@rivosinc.com>,
John Garry <john.g.garry@oracle.com>,
Veronika Molnarova <vmolnaro@redhat.com>,
"Masami Hiramatsu (Google)" <mhiramat@kernel.org>,
linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org
Subject: [PATCH v2 0/6] Mypy and pylint build support
Date: Tue, 11 Mar 2025 14:36:22 -0700 [thread overview]
Message-ID: <20250311213628.569562-1-irogers@google.com> (raw)
Support building perf checking the python code with mypy and/or
pylint. Currently there are too many errors to make this a default.
Shellcheck generates no output on success, so linking shellcheck files
doesn't cause `ld` to fail. Mypy and pylint generate output that will
break `ld` so change the Makefile.build to ignore test log files.
Address some initial mypy errors.
v2: Rebase. Add James Clark's reviewed-by tags. Add example mypy and
pylint error output.
Ian Rogers (6):
tools/build: Don't pass test log files to linker
perf build: Rename TEST_LOGS to SHELL_TEST_LOGS
perf build: Add mypy build tests
perf build: Add pylint build tests
perf test: Address attr.py mypy error
perf python: Fix setup.py mypy errors
tools/build/Makefile.build | 6 +++++-
tools/perf/Build | 32 +++++++++++++++++++++++++++---
tools/perf/Makefile.perf | 14 +++++++++++--
tools/perf/arch/x86/Build | 6 +++---
tools/perf/arch/x86/tests/Build | 6 +++---
tools/perf/pmu-events/Build | 25 ++++++++++++++++++++++-
tools/perf/scripts/Build | 26 ++++++++++++++++++++++++
tools/perf/tests/Build | 32 +++++++++++++++++++++++++++---
tools/perf/tests/shell/lib/attr.py | 8 +-------
tools/perf/trace/beauty/Build | 6 +++---
tools/perf/util/Build | 31 ++++++++++++++++++++++++++---
tools/perf/util/setup.py | 10 ++++++++--
12 files changed, 171 insertions(+), 31 deletions(-)
--
2.49.0.rc0.332.g42c0ae87b1-goog
next reply other threads:[~2025-03-11 21:36 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-11 21:36 Ian Rogers [this message]
2025-03-11 21:36 ` [PATCH v2 1/6] tools/build: Don't pass test log files to linker Ian Rogers
2025-03-11 21:36 ` [PATCH v2 2/6] perf build: Rename TEST_LOGS to SHELL_TEST_LOGS Ian Rogers
2025-03-11 21:36 ` [PATCH v2 3/6] perf build: Add mypy build tests Ian Rogers
2025-03-11 21:36 ` [PATCH v2 4/6] perf build: Add pylint " Ian Rogers
2025-03-11 21:36 ` [PATCH v2 5/6] perf test: Address attr.py mypy error Ian Rogers
2025-03-11 21:36 ` [PATCH v2 6/6] perf python: Fix setup.py mypy errors Ian Rogers
2025-03-24 16:15 ` [PATCH v2 0/6] Mypy and pylint build support Ian Rogers
2025-03-25 19:49 ` Namhyung Kim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250311213628.569562-1-irogers@google.com \
--to=irogers@google.com \
--cc=acme@kernel.org \
--cc=adrian.hunter@intel.com \
--cc=alexander.shishkin@linux.intel.com \
--cc=charlie@rivosinc.com \
--cc=james.clark@linaro.org \
--cc=john.g.garry@oracle.com \
--cc=jolsa@kernel.org \
--cc=kan.liang@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mhiramat@kernel.org \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=peterz@infradead.org \
--cc=vmolnaro@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox