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:
parent
6dc11deeac
commit
68ba9a6a99
4
.github/workflows/test-linting.yml
vendored
4
.github/workflows/test-linting.yml
vendored
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user