[binutils-gdb] [pre-commit] Avoid tabs in .pre-commit-config.yaml
Tom de Vries
vries@sourceware.org
Tue Aug 4 18:32:31 GMT 2026
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9435ff696fd318a6733da781e2a29afd753f7bf1
commit 9435ff696fd318a6733da781e2a29afd753f7bf1
Author: Tom de Vries <tdevries@suse.de>
Date: Tue Aug 4 20:32:28 2026 +0200
[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 "<unicode string>", line 150, column 1
...
Fix this by adding a "Local Variables" section.
Approved-By: Tom Tromey <tom@tromey.com>
Diff:
---
.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:
More information about the Binutils-cvs
mailing list