mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 12:53:26 +00:00
[core] Enable ruff FLY (flynt) lint family (#16182)
This commit is contained in:
@@ -101,7 +101,7 @@ def patch_file_downloader() -> None:
|
||||
FileDownloader.__init__ = patched_init
|
||||
|
||||
|
||||
_IGNORE_LIB_WARNINGS = f"(?:{'|'.join(['Hash', 'Update'])})"
|
||||
_IGNORE_LIB_WARNINGS = "(?:Hash|Update)"
|
||||
# Regex patterns matched against each line of PlatformIO output. Lines that
|
||||
# match are dropped by RedirectText before they reach the parent process.
|
||||
# Patterns are anchored at the start of the line (RedirectText uses
|
||||
|
||||
@@ -113,6 +113,7 @@ exclude = ['generated']
|
||||
select = [
|
||||
"E", # pycodestyle
|
||||
"F", # pyflakes/autoflake
|
||||
"FLY", # flynt: convert string formatting to f-strings
|
||||
"FURB", # refurb
|
||||
"I", # isort
|
||||
"PERF", # performance
|
||||
|
||||
Reference in New Issue
Block a user