Skip to content

Commit

Permalink
Re-sort imports following package name change
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewphilipsmith committed Nov 27, 2024
1 parent 59bc38c commit 69794f0
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 6 deletions.
5 changes: 3 additions & 2 deletions python/poppusher/assets/bel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
import pandas as pd
from dagster import AssetIn, MetadataValue, SpecificPartitionsPartitionMapping, asset
from icecream import ic
from rdflib import Graph, URIRef
from rdflib.namespace import DCAT, DCTERMS

from poppusher.assets.bel.utils import (
DOWNLOAD_HANDLERS,
check_not_str,
Expand Down Expand Up @@ -35,8 +38,6 @@
metadata_to_dataframe,
)
from poppusher.utils import add_metadata, markdown_from_plot
from rdflib import Graph, URIRef
from rdflib.namespace import DCAT, DCTERMS

KNOWN_FAILING_DATASETS = {
# sqlite compressed as tar.gz
Expand Down
3 changes: 2 additions & 1 deletion python/poppusher/assets/bel/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,11 @@
import requests
from dagster import MetadataValue
from icecream import ic
from poppusher.utils import extract_main_file_from_zip, markdown_from_plot
from rdflib import Graph, URIRef
from rdflib.namespace import DCAT, DCTERMS, SKOS

from poppusher.utils import extract_main_file_from_zip, markdown_from_plot

## Functions to process catalog


Expand Down
1 change: 1 addition & 0 deletions python/poppusher/assets/country.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
SpecificPartitionsPartitionMapping,
asset,
)

from poppusher.cloud_outputs import (
GeometryOutput,
MetricsOutput,
Expand Down
1 change: 1 addition & 0 deletions python/poppusher/assets/gb_eaw/england_wales_census.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from dagster import MetadataValue
from icecream import ic
from pandas import DataFrame

from poppusher.assets.country import Country
from poppusher.cloud_outputs import GeometryOutput, MetricsOutput
from poppusher.metadata import (
Expand Down
1 change: 1 addition & 0 deletions python/poppusher/assets/gb_nir/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
MetadataValue,
)
from icecream import ic

from poppusher.assets.country import Country
from poppusher.cloud_outputs import GeometryOutput, MetricsOutput
from poppusher.metadata import (
Expand Down
1 change: 1 addition & 0 deletions python/poppusher/assets/gb_sct/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
asset,
)
from icecream import ic

from poppusher.assets.country import Country
from poppusher.assets.gb_sct.utils import HEADERS, download_file
from poppusher.cloud_outputs import (
Expand Down
3 changes: 2 additions & 1 deletion python/poppusher/assets/uk/uk_os_opendata.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,15 @@
asset,
multi_asset,
)
from slugify import slugify

from poppusher.utils import (
SourceDataAssumptionsOutdated,
StagingDirResource,
extract_main_file_from_zip,
get_staging_dir,
markdown_from_plot,
)
from slugify import slugify

all_datasets = [
{
Expand Down
1 change: 1 addition & 0 deletions python/poppusher/cloud_outputs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import geopandas as gpd
import pandas as pd
from dagster import AssetsDefinition

from poppusher.metadata import GeometryMetadata, MetricMetadata

from .sensor_class import CloudAssetSensor
Expand Down
3 changes: 2 additions & 1 deletion python/poppusher/io_managers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
import pandas as pd
from dagster import InputContext, IOManager, MetadataValue, OutputContext
from iso639 import iter_langs
from upath import UPath

from poppusher.cloud_outputs import GeometryOutput, MetricsOutput
from poppusher.metadata import (
COL,
Expand All @@ -16,7 +18,6 @@
SourceDataRelease,
metadata_to_dataframe,
)
from upath import UPath

# Set of all valid ISO 639-3 codes. (They are all lowercase)
VALID_ISO639_3_CODES = {lang.pt3 for lang in iter_langs()}
Expand Down
3 changes: 2 additions & 1 deletion python/poppusher/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,10 @@ def export_schema():
import json
from pathlib import Path

from poppusher import __version__
from pydantic.json_schema import models_json_schema

from poppusher import __version__

parser = argparse.ArgumentParser(description=export_schema.__doc__)
parser.add_argument(
"out_dir", help="The directory to output the schema to. Must exist."
Expand Down

0 comments on commit 69794f0

Please sign in to comment.