mirror of
https://github.com/home-assistant/core.git
synced 2025-07-13 00:07:10 +00:00
Update ruff to v0.0.235 (#86719)
This commit is contained in:
parent
2bef69c6a7
commit
eb5d63237c
@ -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.231
|
rev: v0.0.235
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff
|
- id: ruff
|
||||||
args:
|
args:
|
||||||
|
@ -240,7 +240,17 @@ asyncio_mode = "auto"
|
|||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
target-version = "py310"
|
target-version = "py310"
|
||||||
exclude = []
|
|
||||||
|
select = [
|
||||||
|
"C", # complexity
|
||||||
|
"D", # docstrings
|
||||||
|
"E", # pycodestyle
|
||||||
|
"F", # pyflakes/autoflake
|
||||||
|
"T20", # flake8-print
|
||||||
|
"W", # pycodestyle
|
||||||
|
"UP", # pyupgrade
|
||||||
|
"PGH004", # Use specific rule codes when using noqa
|
||||||
|
]
|
||||||
|
|
||||||
ignore = [
|
ignore = [
|
||||||
"D202", # No blank lines allowed after function docstring
|
"D202", # No blank lines allowed after function docstring
|
||||||
@ -257,16 +267,6 @@ ignore = [
|
|||||||
"E731", # do not assign a lambda expression, use a def
|
"E731", # do not assign a lambda expression, use a def
|
||||||
"UP024", # Replace aliased errors with `OSError`
|
"UP024", # Replace aliased errors with `OSError`
|
||||||
]
|
]
|
||||||
select = [
|
|
||||||
"C", # complexity
|
|
||||||
"D", # docstrings
|
|
||||||
"E", # pycodestyle
|
|
||||||
"F", # pyflakes/autoflake
|
|
||||||
"T20", # flake8-print
|
|
||||||
"W", # pycodestyle
|
|
||||||
"UP", # pyupgrade
|
|
||||||
"PGH004", # Use specific rule codes when using noqa
|
|
||||||
]
|
|
||||||
|
|
||||||
[tool.ruff.per-file-ignores]
|
[tool.ruff.per-file-ignores]
|
||||||
|
|
||||||
|
@ -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.231
|
ruff==0.0.235
|
||||||
yamllint==1.28.0
|
yamllint==1.28.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user