Skip to content

Commit 25b7cbc

Browse files
committed
add isort to lint.sh
1 parent 835c2d7 commit 25b7cbc

File tree

145 files changed

+311
-452
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

145 files changed

+311
-452
lines changed

dev-requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
ipdb==0.12.2
22
ipython==7.8.0
3+
isort==5.9.2
34
twine==3.1.1
45
mypy==0.782
56
pip-upgrader==1.4.15

piccolo/apps/app/commands/new.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import annotations
2+
23
import importlib
34
import os
45
import sys
@@ -7,7 +8,6 @@
78
import black # type: ignore
89
import jinja2
910

10-
1111
TEMPLATE_DIRECTORY = os.path.join(
1212
os.path.dirname(os.path.abspath(__file__)), "templates"
1313
)

piccolo/apps/app/piccolo_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
from piccolo.conf.apps import AppConfig, Command
2+
23
from .commands.new import new
34
from .commands.show_all import show_all
45

5-
66
APP_CONFIG = AppConfig(
77
app_name="app",
88
migrations_folder_path="",

piccolo/apps/asgi/commands/new.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import annotations
2+
23
import os
34
import shutil
45
import typing as t
@@ -7,7 +8,6 @@
78
import colorama # type: ignore
89
from jinja2 import Environment, FileSystemLoader
910

10-
1111
TEMPLATE_DIR = os.path.join(os.path.dirname(__file__), "templates/app/")
1212
SERVERS = ["uvicorn", "Hypercorn"]
1313
ROUTERS = ["starlette", "fastapi", "blacksheep"]

piccolo/apps/asgi/piccolo_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from piccolo.conf.apps import AppConfig, Command
2-
from .commands.new import new
32

3+
from .commands.new import new
44

55
APP_CONFIG = AppConfig(
66
app_name="asgi",

piccolo/apps/meta/piccolo_app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from piccolo.conf.apps import AppConfig, Command
2-
from .commands.version import version
32

3+
from .commands.version import version
44

55
APP_CONFIG = AppConfig(
66
app_name="meta",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from .diffable_table import DiffableTable # noqa
22
from .migration_manager import MigrationManager # noqa
3-
from .schema_differ import SchemaDiffer, AlterStatements # noqa
3+
from .schema_differ import AlterStatements, SchemaDiffer # noqa
44
from .schema_snapshot import SchemaSnapshot # noqa

piccolo/apps/migrations/auto/diffable_table.py

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
11
from __future__ import annotations
2-
from dataclasses import dataclass, field
2+
33
import typing as t
4+
from dataclasses import dataclass, field
45

6+
from piccolo.apps.migrations.auto.operations import (AddColumn, AlterColumn,
7+
DropColumn)
8+
from piccolo.apps.migrations.auto.serialisation import (deserialise_params,
9+
serialise_params)
510
from piccolo.columns.base import Column
6-
from piccolo.apps.migrations.auto.operations import (
7-
AddColumn,
8-
DropColumn,
9-
AlterColumn,
10-
)
11-
from piccolo.apps.migrations.auto.serialisation import (
12-
serialise_params,
13-
deserialise_params,
14-
)
1511
from piccolo.table import Table, create_table_class
1612

1713

piccolo/apps/migrations/auto/migration_manager.py

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
from __future__ import annotations
2-
from dataclasses import dataclass, field
2+
33
import inspect
44
import typing as t
5+
from dataclasses import dataclass, field
56

6-
from piccolo.columns import Column, column_types
7-
from piccolo.engine import engine_finder
87
from piccolo.apps.migrations.auto.diffable_table import DiffableTable
9-
from piccolo.apps.migrations.auto.operations import (
10-
DropColumn,
11-
RenameColumn,
12-
AlterColumn,
13-
RenameTable,
14-
)
8+
from piccolo.apps.migrations.auto.operations import (AlterColumn, DropColumn,
9+
RenameColumn, RenameTable)
1510
from piccolo.apps.migrations.auto.serialisation import deserialise_params
11+
from piccolo.columns import Column, column_types
12+
from piccolo.engine import engine_finder
1613
from piccolo.table import Table, create_table_class
1714

1815

piccolo/apps/migrations/auto/operations.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
import typing as t
12
from dataclasses import dataclass
3+
24
from piccolo.columns.base import Column
3-
import typing as t
45

56

67
@dataclass

0 commit comments

Comments
 (0)