From 51722279312ab8c9e0475766592a0c39a581c2a8 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Mon, 25 May 2026 20:06:01 -0500 Subject: [PATCH] [core] Enable ruff SLOT (flake8-slots) lint family (#16647) --- pyproject.toml | 1 + tests/unit_tests/test_yaml_util.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 5de8775713..a48bae660f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -125,6 +125,7 @@ select = [ "PL", # pylint "Q", # flake8-quotes "SIM", # flake8-simplify + "SLOT", # flake8-slots "RET", # flake8-ret "T10", # flake8-debugger "UP", # pyupgrade diff --git a/tests/unit_tests/test_yaml_util.py b/tests/unit_tests/test_yaml_util.py index de70a5307d..d6fb5b81f2 100644 --- a/tests/unit_tests/test_yaml_util.py +++ b/tests/unit_tests/test_yaml_util.py @@ -907,7 +907,7 @@ def test_format_path_current_obj_without_location_falls_back_to_key(): """An ESPHomeDataBase current_obj with no esp_range falls back to the key's location.""" class _NoRange(ESPHomeDataBase, str): - pass + __slots__ = () obj = _NoRange.__new__(_NoRange, "value") str.__init__(obj)