From 2ede5ef2e10a893e9e6b4ea2b24a6472557d9685 Mon Sep 17 00:00:00 2001 From: Alex Richardson Date: Tue, 16 May 2023 14:26:50 -0700 Subject: Run the pre-commit hook on all files This strips trailing whitespace and fixes line endings. I had to add the *.dump files to the exclude list to avoid excessive changes, but ideally these would not be part of the repository since they can just be generated by running objdump manually. --- .pre-commit-config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '.pre-commit-config.yaml') diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a996a1f..4b70b2a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,6 +6,12 @@ repos: rev: v3.2.0 hooks: - id: trailing-whitespace + # Do not strip trailing whitespace from patches or SVG images. + # TODO: the objdump outputs should probably not be part of the repo. + exclude: '.*\.(diff|dump|patch|svg)' - id: end-of-file-fixer + # Do not strip trailing newlines from patches or SVG images. + # TODO: the objdump outputs should probably not be part of the repo. + exclude: '.*\.(diff|dump|patch|svg)' - id: check-yaml - id: check-added-large-files -- cgit v1.1