mirror of
https://github.com/home-assistant/core.git
synced 2025-04-19 14:57:52 +00:00
Enable Ruff INP001 (#115082)
This commit is contained in:
parent
f8b6629b26
commit
376aafc83e
1
homeassistant/components/knx/helpers/__init__.py
Normal file
1
homeassistant/components/knx/helpers/__init__.py
Normal file
@ -0,0 +1 @@
|
||||
"""Helpers for KNX."""
|
@ -0,0 +1 @@
|
||||
"""States repairs for Recorder."""
|
@ -1,6 +1,11 @@
|
||||
# This extend our general Ruff rules specifically for tests
|
||||
extend = "../pyproject.toml"
|
||||
|
||||
[lint]
|
||||
extend-ignore = [
|
||||
"INP001", # File is part of an implicit namespace package. Add an `__init__.py`.
|
||||
]
|
||||
|
||||
[lint.isort]
|
||||
known-third-party = [
|
||||
"pylint",
|
||||
|
@ -627,6 +627,7 @@ select = [
|
||||
"F", # pyflakes/autoflake
|
||||
"G", # flake8-logging-format
|
||||
"I", # isort
|
||||
"INP", # flake8-no-pep420
|
||||
"ISC", # flake8-implicit-str-concat
|
||||
"ICN001", # import concentions; {name} should be imported as {asname}
|
||||
"LOG", # flake8-logging
|
||||
|
6
script/scaffold/templates/ruff.toml
Normal file
6
script/scaffold/templates/ruff.toml
Normal file
@ -0,0 +1,6 @@
|
||||
extend = "../../ruff.toml"
|
||||
|
||||
[lint]
|
||||
extend-ignore = [
|
||||
"INP001", # File is part of an implicit namespace package. Add an `__init__.py`.
|
||||
]
|
6
tests/testing_config/custom_components/ruff.toml
Normal file
6
tests/testing_config/custom_components/ruff.toml
Normal file
@ -0,0 +1,6 @@
|
||||
extend = "../../ruff.toml"
|
||||
|
||||
[lint]
|
||||
extend-ignore = [
|
||||
"INP001", # File is part of an implicit namespace package. Add an `__init__.py`.
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user