1
0
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:
Marc Mueller
2022-06-06 21:43:47 +02:00
committed by GitHub
parent ed54cea3f2
commit 983a76a91c
10 changed files with 14 additions and 25 deletions

View File

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