Skip to content

Commit 12baa54

Browse files
committed
Fix flake8 errors
1 parent f4e78a7 commit 12baa54

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

pygeoapi/plugin.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ class PluginContext:
5555
Example:
5656
>>> from pygeoapi.plugin import PluginContext, load_plugin
5757
>>> context = PluginContext(
58-
... config={'name': 'GeoJSON', 'type': 'feature', 'data': 'obs.geojson'},
58+
... config={'name': 'GeoJSON', 'type': 'feature',
59+
... 'data': 'obs.geojson'},
5960
... logger=custom_logger,
6061
... base_url='https://api.example.com'
6162
... )
@@ -165,7 +166,8 @@ def load_plugin(
165166
166167
# Modern mode with dependencies
167168
>>> context = PluginContext(
168-
... config={'name': 'GeoJSON', 'type': 'feature', 'data': 'obs.geojson'},
169+
... config={'name': 'GeoJSON', 'type': 'feature',
170+
... 'data': 'obs.geojson'},
169171
... logger=custom_logger
170172
... )
171173
>>> provider = load_plugin('provider', context.config, context=context)

pygeoapi/process/base.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@
4747
class BaseProcessor:
4848
"""generic Processor ABC. Processes are inherited from this class"""
4949

50-
def __init__(self, processor_def: dict, process_metadata: dict,
51-
context: Optional[PluginContext] = None,
52-
):
50+
def __init__(
51+
self, processor_def: dict, process_metadata: dict,
52+
context: Optional[PluginContext] = None,
53+
):
5354
"""
5455
Initialize object
5556

pygeoapi/process/manager/base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ class BaseManager:
6969
"""generic Manager ABC"""
7070
processes: OrderedDict[str, Dict]
7171

72-
def __init__(self, manager_def: dict, context: Optional[PluginContext] = None):
72+
def __init__(
73+
self, manager_def: dict,
74+
context: Optional[PluginContext] = None,
75+
):
7376
"""
7477
Initialize object
7578

0 commit comments

Comments
 (0)