Upgrade ruff to 0.0.272 (#94290)
This commit is contained in:
parent
bdc82fa50a
commit
f7938c940c
4 changed files with 5 additions and 6 deletions
|
@ -1,6 +1,6 @@
|
|||
repos:
|
||||
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
||||
rev: v0.0.262
|
||||
rev: v0.0.272
|
||||
hooks:
|
||||
- id: ruff
|
||||
args:
|
||||
|
|
|
@ -233,7 +233,7 @@ class ESPHomeClient(BaseBleakClient):
|
|||
) -> bool:
|
||||
"""Connect to a specified Peripheral.
|
||||
|
||||
Keyword Args:
|
||||
**kwargs:
|
||||
timeout (float): Timeout for required
|
||||
``BleakScanner.find_device_by_address`` call. Defaults to 10.0.
|
||||
|
||||
|
|
|
@ -273,6 +273,8 @@ ignore = [
|
|||
"D407", # Section name underlining
|
||||
"E501", # line too long
|
||||
"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
|
||||
"UP038", # Use `X | Y` in `isinstance` call instead of `(X, Y)`
|
||||
]
|
||||
|
@ -289,9 +291,6 @@ voluptuous = "vol"
|
|||
[tool.ruff.flake8-pytest-style]
|
||||
fixture-parentheses = false
|
||||
|
||||
[tool.ruff.pyupgrade]
|
||||
keep-runtime-typing = true
|
||||
|
||||
[tool.ruff.per-file-ignores]
|
||||
|
||||
# Allow for main entry & scripts to write to stdout
|
||||
|
|
|
@ -4,5 +4,5 @@ bandit==1.7.4
|
|||
black==23.3.0
|
||||
codespell==2.2.2
|
||||
isort==5.12.0
|
||||
ruff==0.0.262
|
||||
ruff==0.0.272
|
||||
yamllint==1.28.0
|
||||
|
|
Loading…
Add table
Reference in a new issue