Upgrade ruff to 0.0.272 (#94290)

This commit is contained in:
Ville Skyttä 2023-06-08 22:53:43 +03:00 committed by GitHub
parent bdc82fa50a
commit f7938c940c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 6 deletions

View File

@ -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:

View File

@ -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.

View File

@ -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

View File

@ -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