Skip to content

Commit 042ddab

Browse files
committed
Update copyright's year and fix spaces
1 parent 8fc8ba3 commit 042ddab

14 files changed

Lines changed: 40 additions & 37 deletions

pygeoapi/api/__init__.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Ricardo Garcia Silva <ricardo.garcia.silva@geobeyond.it>
99
#
1010
# Copyright (c) 2025 Tom Kralidis
11-
# Copyright (c) 2022 Francesco Bartoli
11+
# Copyright (c) 2025 Francesco Bartoli
1212
# Copyright (c) 2022 John A Stevenson and Colin Blackburn
1313
# Copyright (c) 2023 Ricardo Garcia Silva
1414
#
@@ -212,6 +212,7 @@ def example_method(api: API, request: APIRequest, custom_arg):
212212
:param request: The web platform specific Request instance.
213213
:param supported_locales: List or set of supported Locale instances.
214214
"""
215+
215216
def __init__(self, request, supported_locales):
216217
# Set default request data
217218
self._data = b''
@@ -336,7 +337,7 @@ def _get_format(self, headers) -> Union[str, None]:
336337

337338
# Format not specified: get from Accept headers (MIME types)
338339
# e.g. format_ = 'text/html'
339-
h = headers.get('accept', headers.get('Accept', '')).strip() # noqa
340+
h = headers.get('accept', headers.get('Accept', '')).strip() # noqa
340341
(fmts, mimes) = zip(*FORMAT_TYPES.items())
341342
# basic support for complex types (i.e. with "q=0.x")
342343
for type_ in (t.split(';')[0].strip() for t in h.split(',') if t):
@@ -1134,10 +1135,10 @@ def describe_collections(api: API, request: APIRequest,
11341135

11351136
# OAPIF Part 2 - list supported CRSs and StorageCRS
11361137
if collection_data_type in ['edr', 'feature']:
1137-
collection['crs'] = get_supported_crs_list(collection_data, DEFAULT_CRS_LIST) # noqa
1138-
collection['storageCRS'] = collection_data.get('storage_crs', DEFAULT_STORAGE_CRS) # noqa
1138+
collection['crs'] = get_supported_crs_list(collection_data, DEFAULT_CRS_LIST) # noqa
1139+
collection['storageCRS'] = collection_data.get('storage_crs', DEFAULT_STORAGE_CRS) # noqa
11391140
if 'storage_crs_coordinate_epoch' in collection_data:
1140-
collection['storageCrsCoordinateEpoch'] = collection_data.get('storage_crs_coordinate_epoch') # noqa
1141+
collection['storageCrsCoordinateEpoch'] = collection_data.get('storage_crs_coordinate_epoch') # noqa
11411142

11421143
elif collection_data_type == 'coverage':
11431144
# TODO: translate
@@ -1176,7 +1177,7 @@ def describe_collections(api: API, request: APIRequest,
11761177
collection['extent']['spatial']['grid'] = [{
11771178
'cellsCount': p._coverage_properties['width'],
11781179
'resolution': p._coverage_properties['resx']
1179-
}, {
1180+
}, {
11801181
'cellsCount': p._coverage_properties['height'],
11811182
'resolution': p._coverage_properties['resy']
11821183
}]

pygeoapi/api/coverages.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Bernhard Mallinger <bernhard.mallinger@eox.at>
1010
#
1111
# Copyright (c) 2024 Tom Kralidis
12-
# Copyright (c) 2022 Francesco Bartoli
12+
# Copyright (c) 2025 Francesco Bartoli
1313
# Copyright (c) 2022 John A Stevenson and Colin Blackburn
1414
# Copyright (c) 2023 Ricardo Garcia Silva
1515
# Copyright (c) 2024 Bernhard Mallinger
@@ -161,8 +161,8 @@ def get_collection_coverage(
161161
except (AttributeError, ValueError) as err:
162162
msg = f'Invalid subset: {err}'
163163
return api.get_exception(
164-
HTTPStatus.BAD_REQUEST, headers, format_,
165-
'InvalidParameterValue', msg)
164+
HTTPStatus.BAD_REQUEST, headers, format_,
165+
'InvalidParameterValue', msg)
166166

167167
if not set(subsets.keys()).issubset(p.axes):
168168
msg = 'Invalid axis name'

pygeoapi/api/environmental_data_retrieval.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Bernhard Mallinger <bernhard.mallinger@eox.at>
1010
#
1111
# Copyright (c) 2024 Tom Kralidis
12-
# Copyright (c) 2022 Francesco Bartoli
12+
# Copyright (c) 2025 Francesco Bartoli
1313
# Copyright (c) 2022 John A Stevenson and Colin Blackburn
1414
# Copyright (c) 2023 Ricardo Garcia Silva
1515
# Copyright (c) 2024 Bernhard Mallinger
@@ -148,7 +148,7 @@ def get_collection_edr_instances(api: API, request: APIRequest, dataset,
148148
'href': f'{uri}/instances/{instance}/{qt}',
149149
'rel': 'data',
150150
'title': f'{qt} query'
151-
}
151+
}
152152
}
153153
instance_dict['data_queries'][qt] = data_query
154154

@@ -166,7 +166,7 @@ def get_collection_edr_instances(api: API, request: APIRequest, dataset,
166166
'href': f'{links_uri}?f={F_JSON}',
167167
'rel': request.get_linkrel(F_JSON),
168168
'type': 'application/json'
169-
}, {
169+
}, {
170170
'href': f'{links_uri}?f={F_HTML}',
171171
'rel': request.get_linkrel(F_HTML),
172172
'type': 'text/html'

pygeoapi/api/itemtypes.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# Ricardo Garcia Silva <ricardo.garcia.silva@geobeyond.it>
99
#
1010
# Copyright (c) 2024 Tom Kralidis
11-
# Copyright (c) 2022 Francesco Bartoli
11+
# Copyright (c) 2025 Francesco Bartoli
1212
# Copyright (c) 2022 John A Stevenson and Colin Blackburn
1313
# Copyright (c) 2023 Ricardo Garcia Silva
1414
#
@@ -352,7 +352,7 @@ def get_collection_items(
352352
HTTPStatus.BAD_REQUEST, headers, request.format,
353353
'NoApplicableCode', msg)
354354

355-
supported_crs_list = get_supported_crs_list(provider_def, DEFAULT_CRS_LIST) # noqa
355+
supported_crs_list = get_supported_crs_list(provider_def, DEFAULT_CRS_LIST) # noqa
356356
if bbox_crs not in supported_crs_list:
357357
msg = f'bbox-crs {bbox_crs} not supported for this collection'
358358
return api.get_exception(
@@ -367,7 +367,7 @@ def get_collection_items(
367367
if len(bbox) > 0:
368368
try:
369369
# Get a pyproj CRS instance for the Collection's Storage CRS
370-
storage_crs = provider_def.get('storage_crs', DEFAULT_STORAGE_CRS) # noqa
370+
storage_crs = provider_def.get('storage_crs', DEFAULT_STORAGE_CRS) # noqa
371371

372372
# Do the (optional) Transform to the Storage CRS
373373
bbox = transform_bbox(bbox, bbox_crs, storage_crs)
@@ -621,8 +621,8 @@ def get_collection_items(
621621
data=content,
622622
options={
623623
'provider_def': get_provider_by_type(
624-
collections[dataset]['providers'],
625-
'feature')
624+
collections[dataset]['providers'],
625+
'feature')
626626
}
627627
)
628628
except FormatterSerializationError:

pygeoapi/api/maps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Bernhard Mallinger <bernhard.mallinger@eox.at>
1010
#
1111
# Copyright (c) 2024 Tom Kralidis
12-
# Copyright (c) 2022 Francesco Bartoli
12+
# Copyright (c) 2025 Francesco Bartoli
1313
# Copyright (c) 2022 John A Stevenson and Colin Blackburn
1414
# Copyright (c) 2023 Ricardo Garcia Silva
1515
# Copyright (c) 2024 Bernhard Mallinger

pygeoapi/api/processes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# Francesco Martinelli <francesco.martinelli@ingv.it>
1111
#
1212
# Copyright (c) 2024 Tom Kralidis
13-
# Copyright (c) 2022 Francesco Bartoli
13+
# Copyright (c) 2025 Francesco Bartoli
1414
# Copyright (c) 2022 John A Stevenson and Colin Blackburn
1515
# Copyright (c) 2023 Ricardo Garcia Silva
1616
# Copyright (c) 2024 Bernhard Mallinger
@@ -65,7 +65,7 @@
6565
LOGGER = logging.getLogger(__name__)
6666

6767
CONFORMANCE_CLASSES = [
68-
'http://www.opengis.net/spec/ogcapi-processes-1/1.0/conf/ogc-process-description', # noqa
68+
'http://www.opengis.net/spec/ogcapi-processes-1/1.0/conf/ogc-process-description', # noqa
6969
'http://www.opengis.net/spec/ogcapi-processes-1/1.0/conf/core',
7070
'http://www.opengis.net/spec/ogcapi-processes-1/1.0/conf/json',
7171
'http://www.opengis.net/spec/ogcapi-processes-1/1.0/conf/oas30',

pygeoapi/api/stac.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Bernhard Mallinger <bernhard.mallinger@eox.at>
1010
#
1111
# Copyright (c) 2024 Tom Kralidis
12-
# Copyright (c) 2022 Francesco Bartoli
12+
# Copyright (c) 2025 Francesco Bartoli
1313
# Copyright (c) 2022 John A Stevenson and Colin Blackburn
1414
# Copyright (c) 2023 Ricardo Garcia Silva
1515
# Copyright (c) 2024 Bernhard Mallinger

pygeoapi/api/tiles.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Bernhard Mallinger <bernhard.mallinger@eox.at>
1010
#
1111
# Copyright (c) 2024 Tom Kralidis
12-
# Copyright (c) 2022 Francesco Bartoli
12+
# Copyright (c) 2025 Francesco Bartoli
1313
# Copyright (c) 2022 John A Stevenson and Colin Blackburn
1414
# Copyright (c) 2023 Ricardo Garcia Silva
1515
# Copyright (c) 2024 Bernhard Mallinger
@@ -96,7 +96,7 @@ def get_collection_tiles(api: API, request: APIRequest,
9696
LOGGER.debug('Loading provider')
9797
try:
9898
t = get_provider_by_type(
99-
api.config['resources'][dataset]['providers'], 'tile')
99+
api.config['resources'][dataset]['providers'], 'tile')
100100
p = load_plugin('provider', t)
101101
except (KeyError, ProviderTypeError):
102102
msg = 'Invalid collection tiles'
@@ -363,14 +363,14 @@ def tilematrixsets(api: API,
363363
{
364364
"rel": "self",
365365
"type": "text/html",
366-
"title": f"The HTML representation of the {e.tileMatrixSet} tile matrix set", # noqa
367-
"href": f"{api.base_url}/TileMatrixSets/{e.tileMatrixSet}?f=html" # noqa
366+
"title": f"The HTML representation of the {e.tileMatrixSet} tile matrix set", # noqa
367+
"href": f"{api.base_url}/TileMatrixSets/{e.tileMatrixSet}?f=html" # noqa
368368
},
369369
{
370370
"rel": "self",
371371
"type": "application/json",
372-
"title": f"The JSON representation of the {e.tileMatrixSet} tile matrix set", # noqa
373-
"href": f"{api.base_url}/TileMatrixSets/{e.tileMatrixSet}?f=json" # noqa
372+
"title": f"The JSON representation of the {e.tileMatrixSet} tile matrix set", # noqa
373+
"href": f"{api.base_url}/TileMatrixSets/{e.tileMatrixSet}?f=json" # noqa
374374
}
375375
]
376376
})
@@ -505,7 +505,7 @@ def get_oas_30(cfg: dict, locale: str) -> tuple[list[dict[str, str]], dict[str,
505505
'tags': [k],
506506
'operationId': f'get{k.capitalize()}.collection.{datatype}.getTile', # noqa
507507
'parameters': [
508-
{'$ref': f"{OPENAPI_YAML['oapit']}#/components/parameters/tileMatrixSetId"}, # noqa
508+
{'$ref': f"{OPENAPI_YAML['oapit']}#/components/parameters/tileMatrixSetId"}, # noqa
509509
{'$ref': f"{OPENAPI_YAML['oapit']}#/components/parameters/tileMatrix"}, # noqa
510510
{'$ref': f"{OPENAPI_YAML['oapit']}#/components/parameters/tileRow"}, # noqa
511511
{'$ref': f"{OPENAPI_YAML['oapit']}#/components/parameters/tileCol"}, # noqa

pygeoapi/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Francesco Bartoli <xbartolone@gmail.com>
55
#
66
# Copyright (c) 2022 Tom Kralidis
7-
# Copyright (c) 2024 Francesco Bartoli
7+
# Copyright (c) 2025 Francesco Bartoli
88
#
99
# Permission is hereby granted, free of charge, to any person
1010
# obtaining a copy of this software and associated documentation

pygeoapi/provider/postgresql.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# Copyright (c) 2018 Jorge Samuel Mendes de Jesus
1212
# Copyright (c) 2025 Tom Kralidis
1313
# Copyright (c) 2022 John A Stevenson and Colin Blackburn
14-
# Copyright (c) 2023 Francesco Bartoli
14+
# Copyright (c) 2025 Francesco Bartoli
1515
# Copyright (c) 2024 Bernhard Mallinger
1616
#
1717
# Permission is hereby granted, free of charge, to any person
@@ -85,6 +85,7 @@ class PostgreSQLProvider(BaseProvider):
8585
using sync approach and server side
8686
cursor (using support class DatabaseCursor)
8787
"""
88+
8889
def __init__(self, provider_def):
8990
"""
9091
PostgreSQLProvider Class constructor

0 commit comments

Comments
 (0)