Skip to content

Commit 0c1edb5

Browse files
committed
upgrade black
1 parent 37a5be2 commit 0c1edb5

File tree

4 files changed

+10
-14
lines changed

4 files changed

+10
-14
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/ambv/black
3-
rev: 21.12b0
3+
rev: 22.1.0
44
hooks:
55
- id: black
66
- repo: https://github.com/PyCQA/flake8

docs/source/reference-material/_examples/snake_game.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def on_direction_change(event):
8383
if snake[-1] in snake[:-1]:
8484
assign_grid_block_color(grid, snake[-1], "red")
8585
new_game_state = GameState.lost
86-
elif len(snake) == grid_size ** 2:
86+
elif len(snake) == grid_size**2:
8787
assign_grid_block_color(grid, snake[-1], "yellow")
8888
new_game_state = GameState.won
8989

tests/test_core/test_vdom.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def test_is_vdom(result, value):
7272
{"tagName": "div", "children": [0, 1, 2]},
7373
),
7474
(
75-
idom.vdom("div", map(lambda x: x ** 2, [1, 2, 3])),
75+
idom.vdom("div", map(lambda x: x**2, [1, 2, 3])),
7676
{"tagName": "div", "children": [1, 4, 9]},
7777
),
7878
(

tests/test_web/test_utils.py

+7-11
Original file line numberDiff line numberDiff line change
@@ -136,17 +136,13 @@ def test_resolve_module_exports_from_source():
136136
names, references = resolve_module_exports_from_source(
137137
fixture_file.read_text(), exclude_default=False
138138
)
139-
assert (
140-
names
141-
== (
142-
{f"name{i}" for i in range(1, 21)}
143-
| {
144-
"functionName",
145-
"ClassName",
146-
}
147-
)
148-
and references == {"https://source1.com", "https://source2.com"}
149-
)
139+
assert names == (
140+
{f"name{i}" for i in range(1, 21)}
141+
| {
142+
"functionName",
143+
"ClassName",
144+
}
145+
) and references == {"https://source1.com", "https://source2.com"}
150146

151147

152148
def test_log_on_unknown_export_type(caplog):

0 commit comments

Comments
 (0)