From: Stephan Rohr <stephan.rohr@intel.com>
To: gdb-patches@sourceware.org
Cc: tdevries@suse.de
Subject: [PATCH] [pre-commit] : add 'tomli' dependency for codespell pre-commit hook
Date: Tue, 30 Jun 2026 08:20:43 +0000 [thread overview]
Message-ID: <20260630082043.84858-1-stephan.rohr@intel.com> (raw)
From: "Rohr, Stephan" <stephan.rohr@intel.com>
The codespell pre-commit hook imports the 'tomllib' module to parse
'pyproject.toml'. 'tomllib' is not available for Python versions 3.10
and older. Add a dependency on 'tomli' so the hook also works on these
Python versions.
---
.pre-commit-config.yaml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 9910bbb82f2..1c6b018d7ac 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -79,10 +79,13 @@ repos:
- id: codespell
files: '^(gdb|gdbserver|gdbsupport)/'
args: [--toml, gdb/pyproject.toml]
+ # 'tomllib' library is not available on Python < 3.11.
+ additional_dependencies: ['tomli']
- id: codespell
name: codespell-log
entry: gdb/contrib/codespell-log.sh
args: [--toml, gdb/pyproject.toml]
+ additional_dependencies: ['tomli']
verbose: true
stages: [commit-msg]
--
2.43.0
Intel Deutschland GmbH
Registered Address: Dornacher Strasse 1, 85622 Feldkirchen, Germany
Tel: +49 89 991 430, www.intel.de
Managing Directors: Harry Demas, Jeffrey Schneiderman, Yin Chong Sorrell
Chairperson of the Supervisory Board: Nicole Lau
Registered Seat: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928
next reply other threads:[~2026-06-30 8:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-30 8:20 Stephan Rohr [this message]
2026-07-13 9:42 ` Tom de Vries
2026-07-13 10:35 ` Tom de Vries
2026-07-28 8:01 ` Tom de Vries
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=20260630082043.84858-1-stephan.rohr@intel.com \
--to=stephan.rohr@intel.com \
--cc=gdb-patches@sourceware.org \
--cc=tdevries@suse.de \
/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