Skip to content

Commit 2497aa3

Browse files
davenquinngithub-actions[bot]
authored andcommitted
Format code and sort imports
1 parent 186254c commit 2497aa3

File tree

6 files changed

+18
-9
lines changed

6 files changed

+18
-9
lines changed

py-modules/cli/macrostrat/cli/entrypoint.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@
22
from pathlib import Path
33

44
import typer
5+
from rich import print
6+
from rich.traceback import install
7+
from typer import Argument, Typer
8+
59
from macrostrat.app_frame import CommandBase
610
from macrostrat.core import app
711
from macrostrat.core.exc import MacrostratError
812
from macrostrat.core.main import env_text, set_app_state
913
from macrostrat.utils.shell import run
10-
from rich import print
11-
from rich.traceback import install
12-
from typer import Argument, Typer
1314

1415
from .database import db_app, db_subsystem
1516
from .schema_management import schema_app

py-modules/cli/macrostrat/cli/subsystems/macrostrat_api/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
primarily in Macrostrat's column-builder application and set of routes.
44
"""
55

6-
from macrostrat.app_frame import compose
76
from pathlib import Path
87

8+
from macrostrat.app_frame import compose
99
from macrostrat.core import MacrostratSubsystem
10+
1011
from ...database import get_db
1112
from ...database.utils import setup_postgrest_access
1213

py-modules/cli/macrostrat/cli/subsystems/sgp/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
"""
44

55
from pathlib import Path
6+
67
from typer import Typer
78

89
from macrostrat.cli.database import get_db
10+
911
from .match import log_matches, match_sgp_data_cmd
1012
from .paleogeography import compute_paleo_positions
1113
from .utils import get_sgp_db

schema/_migrations/composite_projects/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
from macrostrat.core.migrations import (
44
Migration,
5+
ReadinessState,
56
_not,
67
exists,
78
has_columns,
8-
ReadinessState,
99
)
1010

1111

schema/_migrations/maps_ingest_state_custom_type/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
from macrostrat.database import Database, Identifier
2-
31
from macrostrat.core.migrations import (
42
Migration,
3+
ReadinessState,
54
_not,
65
custom_type_exists,
7-
ReadinessState,
86
)
7+
from macrostrat.database import Database, Identifier
98

109

1110
def ingest_type_exists_in_wrong_schema(db: Database) -> bool:

schema/_migrations/maps_schema_updates/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
from macrostrat.core.migrations import Migration, column_type_is, exists, has_columns, ReadinessState
1+
from macrostrat.core.migrations import (
2+
Migration,
3+
ReadinessState,
4+
column_type_is,
5+
exists,
6+
has_columns,
7+
)
28

39

410
class MapsSchemaUpdates(Migration):

0 commit comments

Comments
 (0)