Skip to content

Commit

Permalink
Adds a system-provided checkmake hook for pre-commit
Browse files Browse the repository at this point in the history
[Problems with pre-commit's invocation of `go install`][pc-gh2722] had me wanting more options for how to run hooks in case the automated installation fails. Since checkmake is available in at least Homebrew, it'd be nice to have a hook that can use a checkmake executable already installed in the system PATH.

[pc-gh2722]: pre-commit/pre-commit#2722
  • Loading branch information
colindean committed Apr 3, 2023
1 parent c047d51 commit 0212f16
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-hooks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@
language: golang
pass_filenames: true
types: [makefile]
- id: checkmake-system
name: Makefile linter/analyzer
entry: checkmake
language: system
types: [makefile]
pass_filenames: true

0 comments on commit 0212f16

Please sign in to comment.