mirror of
https://github.com/home-assistant/core.git
synced 2025-07-08 05:47:10 +00:00
Drop pyupgrade in favor of Ruff (#89865)
This commit is contained in:
parent
a7a972fe96
commit
a15c45dbfe
13
.github/workflows/ci.yaml
vendored
13
.github/workflows/ci.yaml
vendored
@ -407,19 +407,6 @@ jobs:
|
|||||||
${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{
|
${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{
|
||||||
needs.info.outputs.pre-commit_cache_key }}
|
needs.info.outputs.pre-commit_cache_key }}
|
||||||
|
|
||||||
- name: Run pyupgrade (fully)
|
|
||||||
if: needs.info.outputs.test_full_suite == 'true'
|
|
||||||
run: |
|
|
||||||
. venv/bin/activate
|
|
||||||
pre-commit run --hook-stage manual pyupgrade --all-files --show-diff-on-failure
|
|
||||||
- name: Run pyupgrade (partially)
|
|
||||||
if: needs.info.outputs.test_full_suite == 'false'
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
. venv/bin/activate
|
|
||||||
shopt -s globstar
|
|
||||||
pre-commit run --hook-stage manual pyupgrade --files {homeassistant,tests}/components/${{ needs.info.outputs.integrations_glob }}/{*,**/*} --show-diff-on-failure
|
|
||||||
|
|
||||||
- name: Register yamllint problem matcher
|
- name: Register yamllint problem matcher
|
||||||
run: |
|
run: |
|
||||||
echo "::add-matcher::.github/workflows/matchers/yamllint.json"
|
echo "::add-matcher::.github/workflows/matchers/yamllint.json"
|
||||||
|
@ -5,12 +5,6 @@ repos:
|
|||||||
- id: ruff
|
- id: ruff
|
||||||
args:
|
args:
|
||||||
- --fix
|
- --fix
|
||||||
- repo: https://github.com/asottile/pyupgrade
|
|
||||||
rev: v3.3.1
|
|
||||||
hooks:
|
|
||||||
- id: pyupgrade
|
|
||||||
args: [--py310-plus]
|
|
||||||
stages: [manual]
|
|
||||||
- repo: https://github.com/PyCQA/autoflake
|
- repo: https://github.com/PyCQA/autoflake
|
||||||
rev: v2.0.0
|
rev: v2.0.0
|
||||||
hooks:
|
hooks:
|
||||||
|
@ -5,6 +5,5 @@ bandit==1.7.4
|
|||||||
black==23.1.0
|
black==23.1.0
|
||||||
codespell==2.2.2
|
codespell==2.2.2
|
||||||
isort==5.12.0
|
isort==5.12.0
|
||||||
pyupgrade==3.3.1
|
|
||||||
ruff==0.0.256
|
ruff==0.0.256
|
||||||
yamllint==1.28.0
|
yamllint==1.28.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user