Skip to content

Commit 72eebc2

Browse files
committed
Fail if formatters have made changes
1 parent 5335cfc commit 72eebc2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/python-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,3 +100,9 @@ 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 [ 0 -ne $(git status --porcelain) ]; then
107+
exit 1
108+
fi

0 commit comments

Comments
 (0)