mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Upgrade ruff to 0.0.272 (#94290)
This commit is contained in:
parent
bdc82fa50a
commit
f7938c940c
@ -1,6 +1,6 @@
|
|||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||||
rev: v0.0.262
|
rev: v0.0.272
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args:
|
args:
|
||||||
|
@ -233,7 +233,7 @@ class ESPHomeClient(BaseBleakClient):
|
|||||||
) -> bool:
|
) -> bool:
|
||||||
"""Connect to a specified Peripheral.
|
"""Connect to a specified Peripheral.
|
||||||
|
|
||||||
Keyword Args:
|
**kwargs:
|
||||||
timeout (float): Timeout for required
|
timeout (float): Timeout for required
|
||||||
``BleakScanner.find_device_by_address`` call. Defaults to 10.0.
|
``BleakScanner.find_device_by_address`` call. Defaults to 10.0.
|
||||||
|
|
||||||
|
@ -273,6 +273,8 @@ ignore = [
|
|||||||
"D407", # Section name underlining
|
"D407", # Section name underlining
|
||||||
"E501", # line too long
|
"E501", # line too long
|
||||||
"E731", # do not assign a lambda expression, use a def
|
"E731", # do not assign a lambda expression, use a def
|
||||||
|
"UP006", # keep type annotation style as is
|
||||||
|
"UP007", # keep type annotation style as is
|
||||||
# Ignored due to performance: https://github.com/charliermarsh/ruff/issues/2923
|
# Ignored due to performance: https://github.com/charliermarsh/ruff/issues/2923
|
||||||
"UP038", # Use `X | Y` in `isinstance` call instead of `(X, Y)`
|
"UP038", # Use `X | Y` in `isinstance` call instead of `(X, Y)`
|
||||||
]
|
]
|
||||||
@ -289,9 +291,6 @@ voluptuous = "vol"
|
|||||||
[tool.ruff.flake8-pytest-style]
|
[tool.ruff.flake8-pytest-style]
|
||||||
fixture-parentheses = false
|
fixture-parentheses = false
|
||||||
|
|
||||||
[tool.ruff.pyupgrade]
|
|
||||||
keep-runtime-typing = true
|
|
||||||
|
|
||||||
[tool.ruff.per-file-ignores]
|
[tool.ruff.per-file-ignores]
|
||||||
|
|
||||||
# Allow for main entry & scripts to write to stdout
|
# Allow for main entry & scripts to write to stdout
|
||||||
|
@ -4,5 +4,5 @@ bandit==1.7.4
|
|||||||
black==23.3.0
|
black==23.3.0
|
||||||
codespell==2.2.2
|
codespell==2.2.2
|
||||||
isort==5.12.0
|
isort==5.12.0
|
||||||
ruff==0.0.262
|
ruff==0.0.272
|
||||||
yamllint==1.28.0
|
yamllint==1.28.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user