From 72604c130f8c30d36ed25dfdb3182e9a0e4894ca Mon Sep 17 00:00:00 2001 From: Preocts Date: Wed, 13 Aug 2025 16:43:35 -0400 Subject: [PATCH] Fail if formatters have made changes --- .github/workflows/python-tests.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 45dbdc1..ae63c08 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -100,3 +100,10 @@ jobs: - name: "Run linters and formatters" run: "uvx nox --session format lint" + + - name: "Check for any unstaged changes" + run: | + if [ -n "$(git status --porcelain)" ]; then + echo "#### Format or Lint changes found. Please run 'uvx nox' locally and push the changes." >> $GITHUB_STEP_SUMMARY + exit 1 + fi