Skip to content

Commit e815374

Browse files
authored
Fix minor comment typos
Fix minor typos in comments and messages using <https://github.com/OSGeo/grass/blob/main/utils/fix_typos.sh>
2 parents 3b5409e + f286ac0 commit e815374

File tree

14 files changed

+22
-22
lines changed

14 files changed

+22
-22
lines changed

src/actinia_ogc_api_processes_plugin/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
44
SPDX-License-Identifier: GPL-3.0-or-later
55
6-
actinia plugin initalization
6+
actinia plugin initialization
77
"""
88

99
__license__ = "GPL-3.0-or-later"

src/actinia_ogc_api_processes_plugin/api/job_results.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ def get(self, job_id):
7676
transmission_mode = request.args.get("transmissionMode") or "mixed"
7777
# transmissionMode = mixed
7878
# - originally:
79-
# if mutliple outputs with different transmission modes requested
79+
# if multiple outputs with different transmission modes requested
8080
# - for actinia:
8181
# automatically given if stdout (value) and
8282
# exported results (reference) returned from
83-
# mixed allowed for all actinia results, thus choosen as default
83+
# mixed allowed for all actinia results, thus chosen as default
8484
if transmission_mode and (
8585
transmission_mode not in {"value", "reference", "mixed"}
8686
):

src/actinia_ogc_api_processes_plugin/api/process_list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def get(self):
9393
)
9494
return make_response(res, 500)
9595
except ConnectionError as e:
96-
log.error(f"Connection ERRO: {e}")
96+
log.error(f"Connection ERROR: {e}")
9797
res = jsonify(
9898
SimpleStatusCodeResponseModel(
9999
status=503,

src/actinia_ogc_api_processes_plugin/core/job_results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def extract_export(pc_el_inout_entry, pc_el_id, resources):
140140
pc_el_inout_entry["export"]["format"],
141141
)
142142

143-
# match resource url + write results formated to dict
143+
# match resource url + write results formatted to dict
144144
export_out_dict = dict()
145145
export_out_dict_key = (
146146
f"{pc_el_id}_{export_value}_{pc_el_inout_entry['export']['type']}"

src/actinia_ogc_api_processes_plugin/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@
4747
# `python3 -m actinia_ogc_api_processes_plugin.main`
4848
log.debug("starting app in development mode...")
4949
flask_app.run(debug=True, use_reloader=False) # noqa: S201
50-
# for production environent use application in wsgi.py
50+
# for production environment use application in wsgi.py

src/actinia_ogc_api_processes_plugin/resources/logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ class CustomJsonFormatter(json.JsonFormatter):
6262
"""Customized formatting of logs as json."""
6363

6464
def add_fields(self, log_record, record, message_dict) -> None:
65-
"""Add fiels for json log."""
65+
"""Add fields for json log."""
6666
super(CustomJsonFormatter, self).add_fields( # noqa: UP008
6767
log_record,
6868
record,

tests/integrationtests/test_conformance.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class ConformanceTest(TestCase):
2323
def test_get_conformance(self) -> None:
2424
"""Test the get method of the /conformance endpoint.
2525
26-
Succesfull query
26+
Successful query
2727
"""
2828
resp = self.app.get("/conformance")
2929
assert isinstance(

tests/integrationtests/test_landing_page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class LandingPageTest(TestCase):
2525
def test_get_landing_page(self) -> None:
2626
"""Test the get method of the / endpoint.
2727
28-
Succesfull query
28+
Successful query
2929
"""
3030
resp = self.app.get("/")
3131
assert isinstance(

tests/integrationtests/test_processes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class ProcessesTest(TestCase):
2323
def test_get_processes(self) -> None:
2424
"""Test the get method of the /processes endpoint.
2525
26-
Succesfull query
26+
Successful query
2727
"""
2828
resp = self.app.get("/processes", headers=self.HEADER_AUTH)
2929
assert isinstance(
@@ -56,7 +56,7 @@ def test_get_processes(self) -> None:
5656
def test_get_processes_limit_parameter(self) -> None:
5757
"""Test the get method of the /processes endpoint with limit.
5858
59-
Succesfull query
59+
Successful query
6060
"""
6161
resp = self.app.get(
6262
"/processes",

tests/integrationtests/test_processes_description.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class ProcessesDescriptionTest(TestCase):
2626
def test_get_processes(self) -> None:
2727
"""Test the get method of the /processes/<process_id> endpoint.
2828
29-
Succesfull query
29+
Successful query
3030
"""
3131
resp = self.app.get("/processes/g.region", headers=self.HEADER_AUTH)
3232
assert isinstance(

0 commit comments

Comments
 (0)