1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 19:02:18 +01:00

Ruff format for CI (#8276)

This commit is contained in:
Katherine Whitlock
2025-02-19 14:24:43 -05:00
committed by GitHub
parent 31e90e5544
commit 3020083564
21 changed files with 75 additions and 87 deletions

View File

@@ -1,11 +1,9 @@
from collections.abc import Iterator
import math
import pytest
from esphome import cpp_generator as cg
from esphome import cpp_types as ct
from esphome import cpp_generator as cg, cpp_types as ct
class TestExpressions:
@@ -156,10 +154,7 @@ class TestLambdaExpression:
actual = str(target)
assert actual == (
"[=](int32_t foo, float bar) {\n"
" if ((foo == 5) && (bar < 10))) {\n"
" }\n"
"}"
"[=](int32_t foo, float bar) {\n if ((foo == 5) && (bar < 10))) {\n }\n}"
)
def test_str__with_return(self):