Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
joshgarde committed May 16, 2024
1 parent accbdb1 commit faee5b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion podaac/swodlr_raster_create/preflight.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def _find_grq_granules(cycle, passe, scene) -> tuple[Granule, Granule]:
for dataset in (pixc_results, orbit_results):
granules = set()

for result in dataset['hits']['hits']:
for result in dataset['hits']['hits']: # pylint: disable=unsubscriptable-object # noqa: E501
metadata = result['_source']['metadata']
granules.add(Granule(metadata['id'], metadata['ISL_urls']))

Expand Down
4 changes: 2 additions & 2 deletions podaac/swodlr_raster_create/submit_evaluate.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _process_input(input_):

try:
# pylint: disable-next=unexpected-keyword-arg
results = grq_es_client.search(
results: dict = grq_es_client.search(
index='grq',
size=10,
body={
Expand All @@ -87,7 +87,7 @@ def _process_input(input_):
return output

logger.debug('GRQ results: %s', str(results))
hits = results['hits']['hits']
hits = results['hits']['hits'] # pylint: disable=unsubscriptable-object

if len(hits) == 0:
logger.error(
Expand Down

0 comments on commit faee5b5

Please sign in to comment.