Skip to content

Commit 83f3b3e

Browse files
authored
Bump ruff to 0.13.0 (#152067)
1 parent 4592d63 commit 83f3b3e

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: v0.12.1
3+
rev: v0.13.0
44
hooks:
55
- id: ruff-check
66
args:

pyproject.toml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ exclude_lines = [
637637
]
638638

639639
[tool.ruff]
640-
required-version = ">=0.12.1"
640+
required-version = ">=0.13.0"
641641

642642
[tool.ruff.lint]
643643
select = [
@@ -779,8 +779,7 @@ ignore = [
779779

780780
"TRY003", # Avoid specifying long messages outside the exception class
781781
"TRY400", # Use `logging.exception` instead of `logging.error`
782-
# Ignored due to performance: https://github.com/charliermarsh/ruff/issues/2923
783-
"UP038", # Use `X | Y` in `isinstance` call instead of `(X, Y)`
782+
784783
"UP046", # Non PEP 695 generic class
785784
"UP047", # Non PEP 696 generic function
786785
"UP049", # Avoid private type parameter names
@@ -798,6 +797,10 @@ ignore = [
798797

799798
# Disabled because ruff does not understand type of __all__ generated by a function
800799
"PLE0605",
800+
801+
"PYI059",
802+
"PYI061",
803+
"FURB116"
801804
]
802805

803806
[tool.ruff.lint.flake8-import-conventions.extend-aliases]

requirements_test_pre_commit.txt

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

script/hassfest/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)