Skip to content

Commit 3969844

Browse files
committed
chore: run pre commits
1 parent 1a84226 commit 3969844

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

adafruit_gps.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,9 @@ def _update_timestamp_utc(self, time_utc: str, date: Optional[str] = None) -> No
509509
month = int(date[2:4])
510510
year = 2000 + int(date[4:6])
511511

512-
self.timestamp_utc = time.struct_time((year, month, day, hours, mins, secs, milisecs, 0, -1))
512+
self.timestamp_utc = time.struct_time(
513+
(year, month, day, hours, mins, secs, milisecs, 0, -1)
514+
)
513515

514516
def _parse_vtg(self, data: List[str]) -> bool:
515517
# VTG - Course Over Ground and Ground Speed

examples/gps_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
gps.timestamp_utc.hour, # not get all data like year, day,
8585
gps.timestamp_utc.minute, # month!
8686
gps.timestamp_utc.second,
87-
gps.timestamp_utc.microsecond
87+
gps.timestamp_utc.microsecond,
8888
)
8989
)
9090
print(f"Latitude: {gps.latitude:.6f} degrees")

examples/gps_time_source.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030

3131
def _format_datetime(datetime):
3232
date_part = f"{datetime.month:02}/{datetime.day:02}/{datetime.year}"
33-
time_part = f"{datetime.hour:02}:{datetime.minute:02}:{datetime.second:02}.{datetime.microsecond:06}"
33+
time_part = (
34+
f"{datetime.hour:02}:{datetime.minute:02}:{datetime.second:02}.{datetime.microsecond:06}"
35+
)
3436
return f"{date_part} {time_part}"
3537

3638

0 commit comments

Comments
 (0)