fix: enforce Black formatting in CI instead of auto-formatting

Changed CI workflow to use `black --check` instead of `black .`
This makes the CI fail if code is not formatted, rather than
auto-formatting and discarding changes.

Aligns with README.md promise that "all checks must pass" and
follows Black best practices for CI/CD pipelines.
This commit is contained in:
Chesars 2026-01-05 10:29:55 -03:00
parent 6dc11deeac
commit 68ba9a6a99

View File

@ -34,10 +34,10 @@ jobs:
poetry install --with dev
poetry run pip install openai==1.100.1
- name: Run Black formatting
- name: Check Black formatting
run: |
cd litellm
poetry run black .
poetry run black --check .
cd ..
- name: Debug - Check file state