aboutsummaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
diff options
context:
space:
mode:
authorAlex Richardson <alexrichardson@google.com>2023-05-16 14:26:50 -0700
committerPhilipp Tomsich <philipp.tomsich@vrull.eu>2023-06-15 16:53:03 +0200
commit2ede5ef2e10a893e9e6b4ea2b24a6472557d9685 (patch)
tree6ff80e765946512e5c32e60b834769d3fb9c2ad9 /.pre-commit-config.yaml
parent33ef4a33787edae744bacfb85685a41b24dc5ca8 (diff)
downloadsail-riscv-2ede5ef2e10a893e9e6b4ea2b24a6472557d9685.zip
sail-riscv-2ede5ef2e10a893e9e6b4ea2b24a6472557d9685.tar.gz
sail-riscv-2ede5ef2e10a893e9e6b4ea2b24a6472557d9685.tar.bz2
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.
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r--.pre-commit-config.yaml6
1 files changed, 6 insertions, 0 deletions
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