Skip to content

Commit

Permalink
fixup(data-pipelines): appease ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
rileyhgrant committed Aug 5, 2024
1 parent d8a45d2 commit ed1f6ad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data-pipeline/src/data_pipeline/data_types/coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def prepare_coverage(coverage_path: str, filter_intervals: Optional[List[str]] =

# Specific to v4, the data is contained in a coverage_stats field and we take the first element
if "coverage_stats" in coverage_fields:
if type(coverage.coverage_stats) == hl.expr.expressions.typed_expressions.ArrayStructExpression:
if type(coverage.coverage_stats) is hl.expr.expressions.typed_expressions.ArrayStructExpression:
coverage = coverage.annotate(**coverage.coverage_stats[0])

# Median field name is different in v3.0.1 vs v2
Expand Down
2 changes: 1 addition & 1 deletion data-pipeline/src/data_pipeline/helpers/write_schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def write_schemas(pipelines: List[Pipeline], schema_dir: str = DEFAULT_SCHEMA_DI
for task_name in all_task_names:
if task_name in task_names:
task = pipeline.get_task(task_name)
if type(task) != DownloadTask:
if type(task) is not DownloadTask:
inputs = task.get_inputs()
output_path = task.get_output_path()

Expand Down

0 comments on commit ed1f6ad

Please sign in to comment.