From 28931927eb7c7695d608bafecc8fbe11063a85e0 Mon Sep 17 00:00:00 2001 From: Sean Mackesey Date: Tue, 25 Jun 2024 08:11:18 -0400 Subject: [PATCH] [pre-commit] Only run pyright in pre-push (#22525) Internal companion PR: https://github.com/dagster-io/internal/pull/10219 ## Summary & Motivation Currently pre-commit will run all of our defined hooks pre-push. There is no point re-running hooks that also run pre-commit. This PR makes it so that only the pyright hook runs pre-push. ## How I Tested These Changes Pushed and observed executed hooks --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 30e497df86c93..af2f9d081f1ba 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,4 @@ +default_stages: [pre-commit] # don't run on push by default repos: - repo: https://github.com/charliermarsh/ruff-pre-commit rev: v0.4.5