From edd088cde19f0fe305cdfe3f00859a35408bf439 Mon Sep 17 00:00:00 2001 From: Pete Peterson Date: Thu, 13 Aug 2026 14:15:27 -0400 Subject: [PATCH] Make pre-commit install get pre-push Turns out there is a better way: https://pre-commit.com/#confining-hooks-to-run-at-certain-stages Then you run `pre-commit install` again and everything "just works." --- .pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2560644..9567d3e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,5 @@ +default_install_hook_types: [pre-commit, pre-push] + exclude: "^pixi.lock$" repos: - repo: https://github.com/pre-commit/pre-commit-hooks