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>
language: unsupported_script
entry: gdb/contrib/check-file-mode.sh
files: *gdb_files
+
+# Local Variables:
+# indent-tabs-mode: nil
+# tab-width: 2
+# End: