Skip to content

Commit

Permalink
check f-string linting
Browse files Browse the repository at this point in the history
  • Loading branch information
semuadmin committed Sep 8, 2024
1 parent 580470c commit e4909d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sandpit/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"""

from math import acos, atan2, cos, pi, radians, sin
from pylint import __version__ as pylintversion
from os import getenv

WGS84 = "WGS_84"
WGS84_SMAJ_AXIS = 6378137.0 # semi-major axis
Expand Down Expand Up @@ -52,7 +52,7 @@ def bearing(lat1: float, lon1: float, lat2: float, lon2: float) -> float:
:rtype: float
"""

print(f"{pylintversion=}")
print(f"{getenv('PATH','notfound')}")
coordinates = lat1, lon1, lat2, lon2
phi1, lambda1, phi2, lambda2 = [radians(c) for c in coordinates]
y = sin(lambda2 - lambda1) * cos(phi2)
Expand Down

0 comments on commit e4909d1

Please sign in to comment.