From 7cf674bb21f465f6d183767a21b5924115f474ae Mon Sep 17 00:00:00 2001 From: Bryan Cox Date: Wed, 4 Dec 2024 10:29:30 -0500 Subject: [PATCH] Add make verify/test to pre-push pre-commit config 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 --- .pre-commit-config.yaml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5995df5e276..d34ef58ac07 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -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]