mirror of
https://github.com/home-assistant/core.git
synced 2025-12-24 21:06:19 +00:00
Update pylint to 2.14.0 (#73119)
This commit is contained in:
@@ -6,7 +6,6 @@ import re
|
||||
|
||||
from astroid import nodes
|
||||
from pylint.checkers import BaseChecker
|
||||
from pylint.interfaces import IAstroidChecker
|
||||
from pylint.lint import PyLinter
|
||||
|
||||
|
||||
@@ -233,17 +232,15 @@ _OBSOLETE_IMPORT: dict[str, list[ObsoleteImportMatch]] = {
|
||||
class HassImportsFormatChecker(BaseChecker): # type: ignore[misc]
|
||||
"""Checker for imports."""
|
||||
|
||||
__implements__ = IAstroidChecker
|
||||
|
||||
name = "hass_imports"
|
||||
priority = -1
|
||||
msgs = {
|
||||
"W0011": (
|
||||
"W7421": (
|
||||
"Relative import should be used",
|
||||
"hass-relative-import",
|
||||
"Used when absolute import should be replaced with relative import",
|
||||
),
|
||||
"W0012": (
|
||||
"W7422": (
|
||||
"%s is deprecated, %s",
|
||||
"hass-deprecated-import",
|
||||
"Used when import is deprecated",
|
||||
|
||||
Reference in New Issue
Block a user