Skip to content

Commit

Permalink
Apply pre-commit fix
Browse files Browse the repository at this point in the history
From the artifact of the previous workflow run
  • Loading branch information
geo-ghci-int[bot] committed Aug 30, 2024
1 parent a1358d1 commit 45609fa
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
3 changes: 2 additions & 1 deletion custom/custom/alembic/env.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
"""Pyramid bootstrap environment. """

from alembic import context
from custom.models.meta import Base
from pyramid.paster import get_appsettings, setup_logging
from sqlalchemy import engine_from_config

from custom.models.meta import Base

config = context.config

setup_logging(config.config_file_name)
Expand Down
3 changes: 2 additions & 1 deletion custom/custom/scripts/initialize_db.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import argparse
import sys

from custom.models.meta import Base
from pyramid.paster import bootstrap, setup_logging
from sqlalchemy.exc import OperationalError

from custom.models.meta import Base


def setup_models(dbsession):
"""
Expand Down
3 changes: 2 additions & 1 deletion custom/custom/views/feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
import pyramid.request
import requests
from cornice import Service
from pyramid.httpexceptions import HTTPBadRequest

from custom.models.feedback import Feedback
from custom.util.send_mail import send_mail
from pyramid.httpexceptions import HTTPBadRequest

LOG = logging.getLogger(__name__)

Expand Down
5 changes: 3 additions & 2 deletions custom/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@
import pytest
import transaction
import webtest
from custom import main, models
from custom.models.meta import Base
from pyramid.paster import get_appsettings
from pyramid.scripting import prepare
from pyramid.testing import DummyRequest, testConfig

from custom import main, models
from custom.models.meta import Base


def pytest_addoption(parser):
parser.addoption("--ini", action="store", metavar="INI_FILE")
Expand Down

0 comments on commit 45609fa

Please sign in to comment.