diff --git a/pylint/plugins/hass_enforce_super_call.py b/pylint/plugins/hass_enforce_super_call.py index db4b2d4a5d7..f2efb8bc8a2 100644 --- a/pylint/plugins/hass_enforce_super_call.py +++ b/pylint/plugins/hass_enforce_super_call.py @@ -11,7 +11,7 @@ METHODS = { } -class HassEnforceSuperCallChecker(BaseChecker): # type: ignore[misc] +class HassEnforceSuperCallChecker(BaseChecker): """Checker for super calls.""" name = "hass_enforce_super_call" diff --git a/pylint/plugins/hass_enforce_type_hints.py b/pylint/plugins/hass_enforce_type_hints.py index 85b1b1370a1..d3546dc7939 100644 --- a/pylint/plugins/hass_enforce_type_hints.py +++ b/pylint/plugins/hass_enforce_type_hints.py @@ -3014,7 +3014,7 @@ def _is_test_function(module_name: str, node: nodes.FunctionDef) -> bool: return module_name.startswith("tests.") and node.name.startswith("test_") -class HassTypeHintChecker(BaseChecker): # type: ignore[misc] +class HassTypeHintChecker(BaseChecker): """Checker for setup type hints.""" name = "hass_enforce_type_hints" diff --git a/pylint/plugins/hass_imports.py b/pylint/plugins/hass_imports.py index 8b3aea61ff4..f28986b90e2 100644 --- a/pylint/plugins/hass_imports.py +++ b/pylint/plugins/hass_imports.py @@ -385,7 +385,7 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = { } -class HassImportsFormatChecker(BaseChecker): # type: ignore[misc] +class HassImportsFormatChecker(BaseChecker): """Checker for imports.""" name = "hass_imports" @@ -415,7 +415,7 @@ class HassImportsFormatChecker(BaseChecker): # type: ignore[misc] } options = () - def __init__(self, linter: PyLinter | None = None) -> None: + def __init__(self, linter: PyLinter) -> None: """Initialize the HassImportsFormatChecker.""" super().__init__(linter) self.current_package: str | None = None diff --git a/pylint/plugins/hass_inheritance.py b/pylint/plugins/hass_inheritance.py index 716479202c7..7ae24ec6e6d 100644 --- a/pylint/plugins/hass_inheritance.py +++ b/pylint/plugins/hass_inheritance.py @@ -21,7 +21,7 @@ def _get_module_platform(module_name: str) -> str | None: return platform.lstrip(".") if platform else "__init__" -class HassInheritanceChecker(BaseChecker): # type: ignore[misc] +class HassInheritanceChecker(BaseChecker): """Checker for invalid inheritance.""" name = "hass_inheritance" diff --git a/pylint/plugins/hass_logger.py b/pylint/plugins/hass_logger.py index bfa05001304..e92fad2bdc0 100644 --- a/pylint/plugins/hass_logger.py +++ b/pylint/plugins/hass_logger.py @@ -9,7 +9,7 @@ LOGGER_NAMES = ("LOGGER", "_LOGGER") LOG_LEVEL_ALLOWED_LOWER_START = ("debug",) -class HassLoggerFormatChecker(BaseChecker): # type: ignore[misc] +class HassLoggerFormatChecker(BaseChecker): """Checker for logger invocations.""" name = "hass_logger" diff --git a/requirements_test.txt b/requirements_test.txt index d12ee6de114..42f96b1f507 100644 --- a/requirements_test.txt +++ b/requirements_test.txt @@ -7,14 +7,14 @@ -c homeassistant/package_constraints.txt -r requirements_test_pre_commit.txt -astroid==2.15.8 +astroid==3.0.0 coverage==7.3.1 freezegun==1.2.2 mock-open==1.4.0 mypy==1.5.1 pre-commit==3.4.0 pydantic==1.10.12 -pylint==2.17.6 +pylint==3.0.0 pylint-per-file-ignores==1.2.1 pipdeptree==2.11.0 pytest-asyncio==0.21.0