From 9435ff696fd318a6733da781e2a29afd753f7bf1 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Tue, 4 Aug 2026 20:32:28 +0200 Subject: [PATCH] [pre-commit] Avoid tabs in .pre-commit-config.yaml When editing .pre-commit-config.yaml with emacs, I tend to get tab-indented lines, which causes: ... $ git commit -a An error has occurred: InvalidConfigError: ==> File .pre-commit-config.yaml =====> while scanning for the next token found character that cannot start any token in "", line 150, column 1 ... Fix this by adding a "Local Variables" section. Approved-By: Tom Tromey --- .pre-commit-config.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fd9223cce2c..3cccec45ef7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -147,3 +147,8 @@ repos: language: unsupported_script entry: gdb/contrib/check-file-mode.sh files: *gdb_files + +# Local Variables: +# indent-tabs-mode: nil +# tab-width: 2 +# End: -- 2.47.3