]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
[pre-commit] Avoid tabs in .pre-commit-config.yaml master
authorTom de Vries <tdevries@suse.de>
Tue, 4 Aug 2026 18:32:28 +0000 (20:32 +0200)
committerTom de Vries <tdevries@suse.de>
Tue, 4 Aug 2026 18:32:28 +0000 (20:32 +0200)
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>
.pre-commit-config.yaml

index fd9223cce2c42a730b98a93c4e4bb825c8a4c64a..3cccec45ef7559030c6ea90066ba69c24cc6b902 100644 (file)
@@ -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: