chore: add "INP" rules to ruff config

This commit is contained in:
bastimeyer 2023-10-17 20:00:22 +02:00 committed by Sebastian Meyer
parent 5f35523f5d
commit c29bbe55a4
2 changed files with 6 additions and 1 deletions

View File

@ -187,6 +187,8 @@ select = [
"DTZ",
# flake8-implicit-str-concat
"ISC",
# flake8-no-pep420
"INP",
# flake8-pie
"PIE",
# flake8-pytest-style
@ -213,7 +215,8 @@ extend-exclude = [
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
"docs/**" = ["RUF012"]
"docs/**" = ["INP", "RUF012"]
"script/**" = ["INP"]
"src/streamlink/__init__.py" = ["I"]
"src/streamlink/_version.py" = ["I"]
"src/streamlink/plugin/api/useragents.py" = ["E501"]

View File

@ -1,3 +1,5 @@
# ruff: noqa: INP001
from tests.plugin.testplugin import __plugin__ as TestPlugin