Skip to content

Commit ac9824c

Browse files
authored
Fail if formatters have made changes (#218)
1 parent 5335cfc commit ac9824c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/python-tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,10 @@ jobs:
100100

101101
- name: "Run linters and formatters"
102102
run: "uvx nox --session format lint"
103+
104+
- name: "Check for any unstaged changes"
105+
run: |
106+
if [ -n "$(git status --porcelain)" ]; then
107+
echo "#### Format or Lint changes found. Please run 'uvx nox' locally and push the changes." >> $GITHUB_STEP_SUMMARY
108+
exit 1
109+
fi

0 commit comments

Comments
 (0)