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:
committed by
GitHub
parent
31e90e5544
commit
3020083564
@@ -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):
|
||||
|
Reference in New Issue
Block a user