Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Marigold committed Jul 21, 2023
1 parent 665d0d5 commit f073bb9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
7 changes: 2 additions & 5 deletions backport/migrate/migrate.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
import json
import shutil
import tempfile
from pathlib import Path
from typing import Any, Dict, Optional, cast
from typing import Optional, cast

import click
import structlog
from cookiecutter.main import cookiecutter
from owid.catalog.utils import underscore
from sqlalchemy.engine import Engine

from etl import config
from etl.backport_helpers import create_dataset
from etl.db import get_engine
from etl.files import apply_black_formatter_to_files, yaml_dump
from etl.files import yaml_dump
from etl.metadata_export import metadata_export
from etl.paths import DAG_DIR, SNAPSHOTS_DIR, STEP_DIR
from walkthrough.utils import add_to_dag, generate_step
Expand Down
2 changes: 1 addition & 1 deletion walkthrough/snapshot.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import datetime as dt
from enum import Enum
from pathlib import Path
from typing import Any, Optional
from typing import Any

from botocore.exceptions import ClientError
from owid.catalog import s3_utils
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ def main(path_to_file: str, upload: bool) -> None:
snap.path.parent.mkdir(exist_ok=True, parents=True)

# Copy local data file to snapshots data folder.
snap.path.write_bytes(
Path(path_to_file).read_bytes())
snap.path.write_bytes(Path(path_to_file).read_bytes())

# Add file to DVC and upload to S3.
snap.dvc_add(upload=upload)
Expand Down
1 change: 0 additions & 1 deletion walkthrough/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
DAG_DIR,
LATEST_POPULATION_VERSION,
LATEST_REGIONS_VERSION,
SNAPSHOTS_DIR,
STEP_DIR,
)
from etl.steps import DAG
Expand Down

0 comments on commit f073bb9

Please sign in to comment.