Skip to content

Commit

Permalink
Add make verify/test to pre-push pre-commit config
Browse files Browse the repository at this point in the history
This commit adds the `make verify` and `make test` to the pre-push stage
 of the pre-commit configuration. This will allow `verify` and `test` to
  have to successfully pass prior to the git push actually working.

Signed-off-by: Bryan Cox <[email protected]>
  • Loading branch information
bryan-cox committed Dec 4, 2024
1 parent 8b07e0c commit 7cf674b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,17 @@ repos:
hooks:
- id: forbid-binary
stages: [pre-commit]
- repo: local
hooks:
- id: make-verify
name: Run make verify
entry: make verify
language: system
stages: [pre-push]
- repo: local
hooks:
- id: make-test
name: Run make test
entry: make test
language: system
stages: [pre-push]

0 comments on commit 7cf674b

Please sign in to comment.