Skip to content

Commit 5044843

Browse files
committed
flake
1 parent cf0b99b commit 5044843

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

branca/utilities.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def linear_gradient(hexList: List[str], nColors: int) -> List[str]:
6767
(r, g, b) tuples that are given.
6868
"""
6969
input_color_bytes = [
70-
[int(_hex[i : i + 2], 16) for i in (1, 3, 5)] for _hex in hexList
70+
[int(_hex[i:i + 2], 16) for i in (1, 3, 5)] for _hex in hexList
7171
]
7272
result: List[str] = []
7373
step_size = (len(hexList) - 1) / (nColors - 1)

tests/test_utilities.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,8 @@ def test_linear_gradient(
222222
# because we rewrote this function, we allow a difference of 1 between the old and the new version
223223
tolerance = 1
224224
for actual, expected in zip(result, expected_output):
225-
r1, g1, b1 = (int(actual[i : i + 2], 16) for i in (1, 3, 5))
226-
r2, g2, b2 = (int(expected[i : i + 2], 16) for i in (1, 3, 5))
225+
r1, g1, b1 = (int(actual[i:i + 2], 16) for i in (1, 3, 5))
226+
r2, g2, b2 = (int(expected[i:i + 2], 16) for i in (1, 3, 5))
227227
if not all(abs(a - b) <= tolerance for a, b in zip((r1, g1, b1), (r2, g2, b2))):
228228
# to get a nice output, assert the full array when we spot a failure
229229
assert result == expected_output

0 commit comments

Comments
 (0)