Skip to content

Commit 523884a

Browse files
committed
linting, pin pytest versions
1 parent b32ae8d commit 523884a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tox.ini

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ passenv =
4848
extras =
4949
dev
5050
deps =
51-
factory-boy
52-
pytest
53-
pytest-django
54-
pytest-factoryboy
55-
pytest-mock
51+
pytest==7.4.4
52+
pytest-django==4.8.0
53+
pytest-factoryboy==2.5.1
54+
pytest-mock==3.12.0
55+
factory-boy==3.3.0
5656
commands =
5757
pip install large-image-converter --find-links https://girder.github.io/large_image_wheels
5858
pytest {posargs}

uvdat/core/tasks/fmv.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,14 @@ def create_geojson_and_bbox(
198198
rotated_heading = (heading + rotation_offset) % 360
199199

200200
angles = [
201-
rotated_heading - 45, # Top-left
202-
rotated_heading + 45, # Top-right
201+
rotated_heading - 45, # Top-left
202+
rotated_heading + 45, # Top-right
203203
rotated_heading + 135, # Bottom-right
204204
rotated_heading - 135, # Bottom-left
205205
]
206206
corners = []
207207
for az in angles:
208-
lon, lat, _ = geod.fwd(center_lon, center_lat, az % 360, half * (2 ** 0.5))
208+
lon, lat, _ = geod.fwd(center_lon, center_lat, az % 360, half * (2**0.5))
209209
corners.append((lon, lat))
210210
corners.append(corners[0]) # close the polygon
211211

0 commit comments

Comments
 (0)