mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-03-11 17:49:25 -05:00
fix: pin black in pre-commit CI workflow
Pin Black in the dev validation workflow so book-format-python produces deterministic output across local and CI environments, preventing first-pass auto-format churn from failing pre-commit.
This commit is contained in:
2
.github/workflows/book-validate-dev.yml
vendored
2
.github/workflows/book-validate-dev.yml
vendored
@@ -102,6 +102,8 @@ jobs:
|
||||
echo "🔍 Installing and running pre-commit..."
|
||||
python -m pip install --upgrade pip
|
||||
pip install pre-commit
|
||||
# Keep formatter output deterministic across local/CI runs.
|
||||
pip install black==24.10.0
|
||||
|
||||
echo "📦 Installing project dependencies for custom hooks..."
|
||||
pip install -r requirements.txt || echo "⚠️ Could not install all requirements, continuing..."
|
||||
|
||||
Reference in New Issue
Block a user