mirror of
https://github.com/home-assistant/core.git
synced 2025-12-20 02:48:57 +00:00
Bump ruff to 0.13.0 (#152067)
This commit is contained in:
committed by
GitHub
parent
4592d6370a
commit
83f3b3e3eb
@@ -1,6 +1,6 @@
|
|||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: v0.12.1
|
rev: v0.13.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff-check
|
- id: ruff-check
|
||||||
args:
|
args:
|
||||||
|
|||||||
@@ -637,7 +637,7 @@ exclude_lines = [
|
|||||||
]
|
]
|
||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
required-version = ">=0.12.1"
|
required-version = ">=0.13.0"
|
||||||
|
|
||||||
[tool.ruff.lint]
|
[tool.ruff.lint]
|
||||||
select = [
|
select = [
|
||||||
@@ -779,8 +779,7 @@ ignore = [
|
|||||||
|
|
||||||
"TRY003", # Avoid specifying long messages outside the exception class
|
"TRY003", # Avoid specifying long messages outside the exception class
|
||||||
"TRY400", # Use `logging.exception` instead of `logging.error`
|
"TRY400", # Use `logging.exception` instead of `logging.error`
|
||||||
# Ignored due to performance: https://github.com/charliermarsh/ruff/issues/2923
|
|
||||||
"UP038", # Use `X | Y` in `isinstance` call instead of `(X, Y)`
|
|
||||||
"UP046", # Non PEP 695 generic class
|
"UP046", # Non PEP 695 generic class
|
||||||
"UP047", # Non PEP 696 generic function
|
"UP047", # Non PEP 696 generic function
|
||||||
"UP049", # Avoid private type parameter names
|
"UP049", # Avoid private type parameter names
|
||||||
@@ -798,6 +797,10 @@ ignore = [
|
|||||||
|
|
||||||
# Disabled because ruff does not understand type of __all__ generated by a function
|
# Disabled because ruff does not understand type of __all__ generated by a function
|
||||||
"PLE0605",
|
"PLE0605",
|
||||||
|
|
||||||
|
"PYI059",
|
||||||
|
"PYI061",
|
||||||
|
"FURB116"
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
|
[tool.ruff.lint.flake8-import-conventions.extend-aliases]
|
||||||
|
|||||||
2
requirements_test_pre_commit.txt
generated
2
requirements_test_pre_commit.txt
generated
@@ -1,5 +1,5 @@
|
|||||||
# Automatically generated from .pre-commit-config.yaml by gen_requirements_all.py, do not edit
|
# Automatically generated from .pre-commit-config.yaml by gen_requirements_all.py, do not edit
|
||||||
|
|
||||||
codespell==2.4.1
|
codespell==2.4.1
|
||||||
ruff==0.12.1
|
ruff==0.13.0
|
||||||
yamllint==1.37.1
|
yamllint==1.37.1
|
||||||
|
|||||||
2
script/hassfest/docker/Dockerfile
generated
2
script/hassfest/docker/Dockerfile
generated
@@ -27,7 +27,7 @@ RUN --mount=from=ghcr.io/astral-sh/uv:0.8.9,source=/uv,target=/bin/uv \
|
|||||||
stdlib-list==0.10.0 \
|
stdlib-list==0.10.0 \
|
||||||
pipdeptree==2.26.1 \
|
pipdeptree==2.26.1 \
|
||||||
tqdm==4.67.1 \
|
tqdm==4.67.1 \
|
||||||
ruff==0.12.1 \
|
ruff==0.13.0 \
|
||||||
PyTurboJPEG==1.8.0 \
|
PyTurboJPEG==1.8.0 \
|
||||||
go2rtc-client==0.2.1 \
|
go2rtc-client==0.2.1 \
|
||||||
ha-ffmpeg==3.2.2 \
|
ha-ffmpeg==3.2.2 \
|
||||||
|
|||||||
Reference in New Issue
Block a user