1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-03 11:52:20 +01:00

[ruff] Enable FURB rules for code modernization (#9896)

This commit is contained in:
J. Nick Koston
2025-07-25 22:54:03 -10:00
committed by GitHub
parent d54db471bd
commit d64e4d3c49
9 changed files with 13 additions and 15 deletions

View File

@@ -64,8 +64,10 @@ def main():
for line in lines:
if line.startswith("BOARDS = {"):
f.write("BOARDS = {\n")
for board, info in sorted(boards.items()):
f.write(TEMPLATE % (board, info["name"], info["variant"]))
f.writelines(
TEMPLATE % (board, info["name"], info["variant"])
for board, info in sorted(boards.items())
)
f.write("}\n")
break