Skip to content

Commit

Permalink
Clean up some of the imports (#285)
Browse files Browse the repository at this point in the history
  • Loading branch information
shaldengeki authored Jul 23, 2024
1 parent e8c6c9b commit ac80eae
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 20 deletions.
8 changes: 1 addition & 7 deletions ark_nova_stats/api/app.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
import datetime
from datetime import timezone
from typing import Optional

from flask import abort, redirect, request, session
from graphql_server.flask import GraphQLView # type: ignore

from ark_nova_stats import models
from ark_nova_stats.api.gql import schema
from ark_nova_stats.config import app, db
from ark_nova_stats.config import app

app.add_url_rule(
"/graphql",
Expand Down
3 changes: 1 addition & 2 deletions ark_nova_stats/api/migrations/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ py_binary(
visibility = ["//ark_nova_stats/api:__subpackages__"],
deps = [
"//ark_nova_stats:config_py",
"//base:flask_app_py",
"//scripts:wait_for_postgres", # keep
"@py_deps//flask_migrate",
"@rules_python//python/runfiles",
],
)

Expand All @@ -34,6 +32,7 @@ py_library(
srcs = ["env.py"],
visibility = ["//:__subpackages__"],
deps = [
"//base:flask_app_py",
"@py_deps//alembic",
"@py_deps//flask",
],
Expand Down
2 changes: 0 additions & 2 deletions ark_nova_stats/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import os

from base.flask_app import FlaskApp

app, cors, db, migrate = FlaskApp(__name__)
8 changes: 1 addition & 7 deletions skeleton/api/app.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
import datetime
from datetime import timezone
from typing import Optional

from flask import abort, redirect, request, session
from graphql_server.flask import GraphQLView # type: ignore

from skeleton import models
from skeleton.api.gql import schema
from skeleton.config import app, db
from skeleton.config import app

app.add_url_rule(
"/graphql",
Expand Down
2 changes: 0 additions & 2 deletions skeleton/config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import os

from base.flask_app import FlaskApp

app, cors, db, migrate = FlaskApp(__name__)

0 comments on commit ac80eae

Please sign in to comment.