From 8c5affaae69eb5cccc7055a0a2a8093d0142cd65 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 18 Jun 2025 13:47:08 +0500 Subject: [PATCH] linter github workflow - use uv for acquiring black --- .github/workflows/ci-black-formatting.yaml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-black-formatting.yaml b/.github/workflows/ci-black-formatting.yaml index 7d90487316..e0531f6f5b 100644 --- a/.github/workflows/ci-black-formatting.yaml +++ b/.github/workflows/ci-black-formatting.yaml @@ -23,10 +23,9 @@ jobs: - name: Install dependencies run: | - python3 -m pip install --upgrade pip - python3 -m pip install 'black>=24.10.0' curl -LsSf https://astral.sh/uv/install.sh | sh uv tool install ruff + uv tool install black # black doesn't catch all syntax errors, so we check them explicitly. - name: Check syntax errors @@ -41,7 +40,7 @@ jobs: - name: Black formatter id: black run: | - python3 -m black --diff --check . + uvx black --diff --check . continue-on-error: true - name: Ruff check