From e645365b45fdffcf01caffbd342c9220e5c4869e Mon Sep 17 00:00:00 2001 From: Tom Scogland Date: Sun, 11 Aug 2024 17:21:22 -0700 Subject: [PATCH] pre-commit: show diff on failure problem: in CI we can't see what formatting was changed by the hooks solution: add the `--show-diff-on-failure` flag so we can see what happened in case it doesn't repro easily elsewhere --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f021c5639..ed574b9d7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,7 +37,7 @@ jobs: - name: install linting and formatting deps run: pip install -r scripts/requirements-dev.txt - name: format and linting checks - run: pre-commit run --all-files + run: pre-commit run --all-files --show-diff-on-failure python-lint: name: python lint