Enable Ruff INP001 (#115082)

This commit is contained in:
Sid 2024-04-08 15:43:58 +02:00 committed by GitHub
parent f8b6629b26
commit 376aafc83e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1 @@
"""Helpers for KNX."""

View File

@ -0,0 +1 @@
"""States repairs for Recorder."""

View File

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

View File

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

View File

@ -0,0 +1,6 @@
extend = "../../ruff.toml"
[lint]
extend-ignore = [
"INP001", # File is part of an implicit namespace package. Add an `__init__.py`.
]

View File

@ -0,0 +1,6 @@
extend = "../../ruff.toml"
[lint]
extend-ignore = [
"INP001", # File is part of an implicit namespace package. Add an `__init__.py`.
]