Skip to content

Commit 4b8a7ac

Browse files
authoredApr 27, 2022
Fix CI (#102)
* Fix CI * Change black version * Change black version 2
1 parent 8ac7513 commit 4b8a7ac

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed
 

‎src/atldld/sync.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,8 @@ def get_parallel_transform(
199199

200200
coords_img = pir_to_xy(coords_ref, affine_2d, affine_3d)[:2]
201201

202-
tx = coords_img[0].reshape(grid_shape) / (2 ** downsample_img)
203-
ty = coords_img[1].reshape(grid_shape) / (2 ** downsample_img)
202+
tx = coords_img[0].reshape(grid_shape) / (2**downsample_img)
203+
ty = coords_img[1].reshape(grid_shape) / (2**downsample_img)
204204

205205
dx = tx - grid[1]
206206
dy = ty - grid[0]

‎tests/cli/test_search_cmd.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ def test_all_results_are_shown(self, rma_all):
9494
n_img = len(item["section_images"]) # type: ignore[arg-type]
9595
assert re.search(
9696
(
97-
fr"id: +{item['id']}, genes: +{genes}, "
98-
fr"coronal, {n_img} section images"
97+
rf"id: +{item['id']}, genes: +{genes}, "
98+
rf"coronal, {n_img} section images"
9999
),
100100
result.output.strip(),
101101
)
@@ -228,8 +228,8 @@ def test_all_results_are_shown(self, rma_all, command):
228228
for item in msg:
229229
assert re.search(
230230
(
231-
fr"id: +{item['id']}, dataset: +{item['data_set_id']}, "
232-
fr"h: +{item['height']}, w: +{item['width']}"
231+
rf"id: +{item['id']}, dataset: +{item['data_set_id']}, "
232+
rf"h: +{item['height']}, w: +{item['width']}"
233233
),
234234
result.output.strip(),
235235
)

‎tests/test_requests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def test_request_works(self):
128128

129129
responses.add(
130130
responses.GET,
131-
re.compile(fr"https://api.brain-map.org/api/.*/query.json\?{url_params}"),
131+
re.compile(rf"https://api.brain-map.org/api/.*/query.json\?{url_params}"),
132132
json=return_json,
133133
)
134134
status_got, msg_got = rma(params)

‎tox.ini

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ commands = pytest {posargs}
3131
skip_install = true
3232
deps =
3333
bandit==1.7.0
34-
black==21.5b1
34+
black==22.3.0
3535
flake8==3.9.2
3636
flake8-bugbear==21.4.3
3737
flake8-comprehensions==3.5.0
@@ -52,7 +52,7 @@ commands =
5252
[testenv:format]
5353
skip_install = true
5454
deps =
55-
black==21.5b1
55+
black==22.3.0
5656
isort==5.8.0
5757
commands =
5858
isort {posargs:{[tox]sources}}

0 commit comments

Comments
 (0)