From 6319fa145454fabe998dbdd99ef16d7c45b8e9ac Mon Sep 17 00:00:00 2001 From: Katherine Whitlock Date: Tue, 18 Feb 2025 23:00:26 -0500 Subject: [PATCH] Switch Python CI format check from black-format to Ruff --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd79356b3c..36ee7fbcc2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -61,8 +61,8 @@ jobs: pip install -r requirements.txt -r requirements_optional.txt -r requirements_test.txt pip install -e . - black: - name: Check black + ruff: + name: Check ruff runs-on: ubuntu-24.04 needs: - common @@ -74,10 +74,10 @@ jobs: with: python-version: ${{ env.DEFAULT_PYTHON }} cache-key: ${{ needs.common.outputs.cache-key }} - - name: Run black + - name: Run Ruff run: | . venv/bin/activate - black --verbose esphome tests + ruff format --verbose esphome tests - name: Suggested changes run: script/ci-suggest-changes if: always()