Enable pylint import-outside-toplevel (#33631)
This commit is contained in:
1 parent
9dfcae3dc2
commit
b9b1cee403
23 files changed
+47
-23
No files matched your search
@@ -155,6 +155,7 @@ async def logbook_filtering_attributes(hass):
|
||||
|
||||
@benchmark
|
||||
async def _logbook_filtering(hass, last_changed, last_updated):
|
||||
# pylint: disable=import-outside-toplevel
|
||||
from homeassistant.components import logbook
|
||||
|
||||
entity_id = "test.entity"
|
||||
|
||||
@@ -34,6 +34,7 @@ ERROR_STR = "General Errors"
|
||||
|
||||
def color(the_color, *args, reset=None):
|
||||
"""Color helper."""
|
||||
# pylint: disable=import-outside-toplevel
|
||||
from colorlog.escape_codes import escape_codes, parse_colors
|
||||
|
||||
try:
|
||||
|
||||
@@ -29,7 +29,7 @@ def run(args):
|
||||
"value", help="The value to save when putting a secret", nargs="?", default=None
|
||||
)
|
||||
|
||||
# pylint: disable=import-error, no-member
|
||||
# pylint: disable=import-error, no-member, import-outside-toplevel
|
||||
import credstash
|
||||
|
||||
args = parser.parse_args(args)
|
||||
|
||||
@@ -26,7 +26,9 @@ def run(args):
|
||||
)
|
||||
parser.add_argument("name", help="Name of the secret", nargs="?", default=None)
|
||||
|
||||
import keyring
|
||||
import keyring # pylint: disable=import-outside-toplevel
|
||||
|
||||
# pylint: disable=import-outside-toplevel
|
||||
from keyring.util import platform_ as platform
|
||||
|
||||
args = parser.parse_args(args)
|
||||
|
||||
Reference in new issue
Block a user