Skip to content

Commit

Permalink
pre-commit: Change clang-format hook to the version-controlled reposi…
Browse files Browse the repository at this point in the history
…tory

The source repository, https://github.com/ssciwr/clang-format-wheel, describes how developers can pin the version of clang-format through an alternative hook.

As @dragonmux has been having trouble running it, this commit changes the hook so that the matching version is used.
  • Loading branch information
amyspark authored and dragonmux committed Jan 22, 2024
1 parent 95b2ad6 commit f1e9a33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
exclude: '^upgrade/|^scripts/' # don't run hooks on scripts/ and upgrade/

repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
- repo: https://github.com/ssciwr/clang-format-hook
rev: v16.0.2
hooks:
- id: clang-format
Expand Down

0 comments on commit f1e9a33

Please sign in to comment.