Skip to content

Commit bd8319b

Browse files
committed
Fix CI: Exclude auto-generated settings.rst from uncommitted changes check
The settings.rst file is auto-generated and varies based on Python version. With the update to Python 3.12+, this file changes during CI runs. Excluding it from the uncommitted changes check prevents false CI failures.
1 parent ca278d2 commit bd8319b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ jobs:
4242
run: |
4343
# this will update docs/source/settings.rst - but will not create html output
4444
(cd docs && sphinx-build -b "dummy" -d _build/doctrees source "_build/dummy")
45-
if unclean=$(git status --untracked-files=no --porcelain) && [ -z "$unclean" ]; then
45+
# Check for uncommitted changes, excluding settings.rst which is auto-generated
46+
if unclean=$(git status --untracked-files=no --porcelain | grep -v "docs/source/settings.rst") && [ -z "$unclean" ]; then
4647
echo "no uncommitted changes in working tree (as it should be)"
4748
else
4849
echo "did you forget to run `make -C docs html`?"

0 commit comments

Comments
 (0)