1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-14 06:38:17 +00:00

Switch Python CI format check from black-format to Ruff

This commit is contained in:
Katherine Whitlock 2025-02-18 23:00:26 -05:00
parent 085ad26afb
commit 6319fa1454

View File

@ -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()