diff --git a/pyproject.toml b/pyproject.toml index a404669de91..ef3e150d4ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -383,6 +383,12 @@ enable = [ #"useless-suppression", # temporarily every now and then to clean them up "use-symbolic-message-instead", ] +per-file-ignores = [ + # hass-component-root-import: Tests test non-public APIs + # protected-access: Tests do often test internals a lot + # redefined-outer-name: Tests reference fixtures in the test function + "/tests/:hass-component-root-import,protected-access,redefined-outer-name", +] [tool.pylint.REPORTS] score = false @@ -409,12 +415,6 @@ runtime-typing = false [tool.pylint.CODE_STYLE] max-line-length-suggestions = 72 -[tool.pylint-per-file-ignores] -# hass-component-root-import: Tests test non-public APIs -# protected-access: Tests do often test internals a lot -# redefined-outer-name: Tests reference fixtures in the test function -"/tests/"="hass-component-root-import,protected-access,redefined-outer-name" - [tool.pytest.ini_options] testpaths = [ "tests", diff --git a/requirements_test.txt b/requirements_test.txt index 5b970b68a13..f823bf05fb0 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -15,7 +15,7 @@ mypy==1.8.0 pre-commit==3.6.0 pydantic==1.10.12 pylint==3.0.3 -pylint-per-file-ignores==1.2.1 +pylint-per-file-ignores==1.3.2 pipdeptree==2.13.2 pytest-asyncio==0.23.4 pytest-aiohttp==1.0.5