Move overlapping pylint rules to ruff, disable mypy overlap (#94359)

This commit is contained in:
Franck Nijhof 2023-06-27 17:42:46 +02:00 committed by GitHub
parent 7c676c0a7d
commit 3e85a29b86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
88 changed files with 537 additions and 357 deletions

View file

@ -221,7 +221,7 @@ def execute(hass, filename, source, data=None):
try:
_LOGGER.info("Executing %s: %s", filename, data)
# pylint: disable-next=exec-used
exec(compiled.code, restricted_globals)
exec(compiled.code, restricted_globals) # noqa: S102
except ScriptError as err:
logger.error("Error executing script: %s", err)
except Exception as err: # pylint: disable=broad-except