mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2026-09-20 14:27:42 +00:00
Use ruff linter to fix issues and provide consistent formatting
This commit is contained in:
@@ -5,7 +5,9 @@ import geopandas
|
||||
from shapely import prepare
|
||||
|
||||
from core.data_store import DATA_STORE
|
||||
from providers.staticdata.local_file_static_data_provider import LocalFileStaticDataProvider
|
||||
from providers.staticdata.local_file_static_data_provider import (
|
||||
LocalFileStaticDataProvider,
|
||||
)
|
||||
|
||||
|
||||
class ITUZoneData(LocalFileStaticDataProvider):
|
||||
@@ -21,7 +23,7 @@ class ITUZoneData(LocalFileStaticDataProvider):
|
||||
with open(path) as f:
|
||||
itu_zone_data = geopandas.GeoDataFrame.from_features(json.load(f)["features"])
|
||||
for idx in itu_zone_data.index:
|
||||
prepare(itu_zone_data.at[idx, 'geometry'])
|
||||
prepare(itu_zone_data.at[idx, "geometry"])
|
||||
|
||||
# Bail out if a stop has been requested, i.e. the program is shutting down - no need to prepare the rest
|
||||
# of the data in this case
|
||||
|
||||
Reference in New Issue
Block a user