Update pylint to 3.0.0 (#101282)

This commit is contained in:
Marc Mueller 2023-10-02 20:12:43 +02:00 committed by GitHub
parent e4cb19f20d
commit f248b693d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 8 additions and 8 deletions

View File

@ -11,7 +11,7 @@ METHODS = {
}
class HassEnforceSuperCallChecker(BaseChecker): # type: ignore[misc]
class HassEnforceSuperCallChecker(BaseChecker):
"""Checker for super calls."""
name = "hass_enforce_super_call"

View File

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

View File

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

View File

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

View File

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

View File

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