Skip to content

Commit a36f0e2

Browse files
author
Milo Hyben
committed
Fixing small linting issues.
1 parent 6251cf5 commit a36f0e2

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

etl/post/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def etl_post(request: flask.Request):
7474

7575
# publish to pubsub
7676
# message contains all the attributes except body which can be large and already stored in BQ table
77-
pb_obj = {x: bq_obj[x] for x in bq_obj if x not in ['body']}
77+
pb_obj = {k: v for k, v in bq_obj.items() if k not in ['body']}
7878
try:
7979
_PUBSUB_CLIENT.publish(PUBSUB_TOPIC, json.dumps(pb_obj).encode(), content_type='application/json')
8080
except Exception as e: # pylint: disable=broad-exception-caught

metamist/parser/sample_json_parser.py

+1
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,5 @@ def __init__(
6666
async def parse(
6767
self, record: str, confirm=False, dry_run=False
6868
):
69+
"""Parse passed record """
6970
raise NotImplementedError('TO BE IMPLEMENTED')

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ testcontainers[mariadb]
99
nest-asyncio
1010
coverage
1111
types-PyMySQL
12-
pytest
12+
pytest

0 commit comments

Comments
 (0)