mirror of
https://github.com/esphome/esphome.git
synced 2025-03-15 07:08:20 +00:00
Switch Python CI format check from black-format to Ruff
This commit is contained in:
parent
085ad26afb
commit
6319fa1454
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@ -61,8 +61,8 @@ jobs:
|
|||||||
pip install -r requirements.txt -r requirements_optional.txt -r requirements_test.txt
|
pip install -r requirements.txt -r requirements_optional.txt -r requirements_test.txt
|
||||||
pip install -e .
|
pip install -e .
|
||||||
|
|
||||||
black:
|
ruff:
|
||||||
name: Check black
|
name: Check ruff
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
needs:
|
needs:
|
||||||
- common
|
- common
|
||||||
@ -74,10 +74,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
python-version: ${{ env.DEFAULT_PYTHON }}
|
python-version: ${{ env.DEFAULT_PYTHON }}
|
||||||
cache-key: ${{ needs.common.outputs.cache-key }}
|
cache-key: ${{ needs.common.outputs.cache-key }}
|
||||||
- name: Run black
|
- name: Run Ruff
|
||||||
run: |
|
run: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
black --verbose esphome tests
|
ruff format --verbose esphome tests
|
||||||
- name: Suggested changes
|
- name: Suggested changes
|
||||||
run: script/ci-suggest-changes
|
run: script/ci-suggest-changes
|
||||||
if: always()
|
if: always()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user