From 5d974a4a61f5a1706e05861f87d976d305a8fd52 Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Wed, 27 Dec 2023 00:19:45 -0800 Subject: [PATCH] Explicitly specify comparison to previous commit in pre-commit action --- .github/workflows/black.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index f23bfea1..34f755bc 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -10,4 +10,5 @@ jobs: - uses: actions/setup-python@v4 - uses: pre-commit/action@v3.0.0 with: - extra_args: black + extra_args: black --from-ref HEAD^1 --to-ref HEAD +