From 68ba9a6a99eac3ea91012fec313edbddf12cf6e5 Mon Sep 17 00:00:00 2001 From: Chesars Date: Mon, 5 Jan 2026 10:29:55 -0300 Subject: [PATCH] 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. --- .github/workflows/test-linting.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-linting.yml b/.github/workflows/test-linting.yml index 35ebffeada..26f8a2efb6 100644 --- a/.github/workflows/test-linting.yml +++ b/.github/workflows/test-linting.yml @@ -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