Skip to content

Commit 091d62b

Browse files
author
doublebyte1
committed
- fixed flake errors
1 parent 7bf8ff8 commit 091d62b

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

pygeoapi/api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def all_apis() -> dict:
143143
'process': processes,
144144
'style': styles,
145145
'tile': tiles,
146-
'stac': stac,
146+
'stac': stac,
147147
}
148148

149149

pygeoapi/api/styles.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@
4747

4848
def get_styles(api: API, request: APIRequest) -> Tuple[dict, int, str]:
4949
"""
50-
Fetches the set of styles available.
51-
For each style it returns the id, a title, links to the stylesheet of the style in each supported encoding,
52-
and the link to the metadata.
50+
Fetches the set of styles available.
51+
For each style it returns the id, a title, links to the stylesheet of the style # noqa
52+
in each supported encoding, and the link to the metadata.
5353
5454
:param request: A request object
5555
@@ -89,12 +89,12 @@ def get_oas_30(cfg: dict, locale: str) -> tuple[list[dict[str, str]], dict[str,
8989
paths['/styles'] = {
9090
'get': {
9191
'summary': 'lists the available styles',
92-
'description': 'This operation fetches the set of styles available.',
92+
'description': 'This operation fetches the set of styles available.', # noqa
9393
'tags': ['Discover and fetch styles'],
9494
'operationId': 'getStyles',
95-
'externalDocs': {
96-
'description': 'The specification that describes this operation: OGC API - Styles (DRAFT)',
97-
'url': 'https://docs.ogc.org/DRAFTS/20-009.html'
95+
'externalDocs': {
96+
'description': 'The specification that describes this operation: OGC API - Styles (DRAFT)', # noqa
97+
'url': 'https://docs.ogc.org/DRAFTS/20-009.html'
9898
},
9999
'parameters': [
100100
{'$ref': '#/components/parameters/access_token'},
@@ -109,4 +109,4 @@ def get_oas_30(cfg: dict, locale: str) -> tuple[list[dict[str, str]], dict[str,
109109
}
110110
}
111111

112-
return [{'name': 'styles'}], {'paths': paths}
112+
return [{'name': 'styles'}], {'paths': paths}

pygeoapi/flask_app.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,7 @@ def get_collection_edr_query(collection_id, instance_id=None,
523523
skip_valid_check=True,
524524
)
525525

526+
526527
@BLUEPRINT.route('/styles')
527528
def styles_api_my_function():
528529
"""
@@ -532,6 +533,7 @@ def styles_api_my_function():
532533

533534
return execute_from_flask(styles_api.get_styles, request)
534535

536+
535537
@BLUEPRINT.route('/stac')
536538
def stac_catalog_root():
537539
"""

0 commit comments

Comments
 (0)