mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-07 02:59:05 +00:00
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
1 changed files with 2 additions and 2 deletions
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…
Add table
Reference in a new issue