diff options
author | Alex Richardson <alexrichardson@google.com> | 2023-06-16 14:10:07 -0700 |
---|---|---|
committer | Philipp Tomsich <philipp.tomsich@vrull.eu> | 2023-06-19 04:51:45 -0700 |
commit | 1c2dca98fe8f21930339cf1e13e107a27eaa3ebc (patch) | |
tree | cd0d5b832b9740cf25f7ea6512865fe721c26856 /.pre-commit-config.yaml | |
parent | 989f43720185e3f9a3147eb69afda5c897031570 (diff) | |
download | sail-riscv-1c2dca98fe8f21930339cf1e13e107a27eaa3ebc.zip sail-riscv-1c2dca98fe8f21930339cf1e13e107a27eaa3ebc.tar.gz sail-riscv-1c2dca98fe8f21930339cf1e13e107a27eaa3ebc.tar.bz2 |
Update pre-commit-hooks version
The template that I used when adding it uses hooks from 2020. Update this
to the latest version and add a minimum pre-commit version check to ensure
we get sensible error messages rather than obscure failures.
The minimum chosen here is 2.10 as that is the version shipping with
Debian 11 and most other distributions have newer versions. If needed
a newer version can always be installed using pip.
Diffstat (limited to '.pre-commit-config.yaml')
-rw-r--r-- | .pre-commit-config.yaml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4b70b2a..c530a5b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,9 +1,10 @@ # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks exclude: '^(prover_snapshots)|(generated_definitions)|(c_emulator/SoftFloat-3e)' +minimum_pre_commit_version: 2.10.0 repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.2.0 + rev: v4.4.0 hooks: - id: trailing-whitespace # Do not strip trailing whitespace from patches or SVG images. |