Bump ruff to 0.0.254 (#89273)

pull/89313/head
epenet 2023-03-07 13:25:31 +01:00 committed by GitHub
parent 8c282e2b0d
commit ff2a88b426
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 2 deletions

View File

@ -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.253 rev: v0.0.254
hooks: hooks:
- id: ruff - id: ruff
args: args:

View File

@ -526,6 +526,7 @@ class ESPHomeClient(BaseBleakClient):
The characteristic to read from, specified by either integer The characteristic to read from, specified by either integer
handle, UUID or directly by the BleakGATTCharacteristic handle, UUID or directly by the BleakGATTCharacteristic
object representing it. object representing it.
**kwargs: Unused
Returns: Returns:
(bytearray) The read data. (bytearray) The read data.
@ -542,6 +543,7 @@ class ESPHomeClient(BaseBleakClient):
Args: Args:
handle (int): The handle of the descriptor to read from. handle (int): The handle of the descriptor to read from.
**kwargs: Unused
Returns: Returns:
(bytearray) The read data. (bytearray) The read data.

View File

@ -272,6 +272,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
# Ignored due to performance: https://github.com/charliermarsh/ruff/issues/2923
"UP038", # Use `X | Y` in `isinstance` call instead of `(X, Y)`
] ]
[tool.ruff.flake8-import-conventions.extend-aliases] [tool.ruff.flake8-import-conventions.extend-aliases]

View File

@ -14,5 +14,5 @@ pycodestyle==2.10.0
pydocstyle==6.2.3 pydocstyle==6.2.3
pyflakes==3.0.1 pyflakes==3.0.1
pyupgrade==3.3.1 pyupgrade==3.3.1
ruff==0.0.253 ruff==0.0.254
yamllint==1.28.0 yamllint==1.28.0