build(style): fast newline check with --fix as part of make format

The end of file newline check spawned two processes per tracked file and
took ~85s, so it only ran as a separate CI job. Rewrite it in Python
reading only the last bytes of each file (~0.3s) and add --fix to append
a missing or drop duplicate newlines.

Run it in make format (--fix), make check_format and the pre-commit hook
(staged text files only), and drop the separate check_newlines CI job.
This commit is contained in:
Matthias Grob committed 2026-11-26 10:24:01 +01:00
1 parent 1c15438ec5
commit 0430d0d816
5 files changed
+115 -25

No files matched your search

-1
View File
@@ -30,7 +30,6 @@ jobs:
matrix:
check: [
"check_format",
"check_newlines",
"validate_module_configs",
"shellcheck_all",
"module_documentation",