Skip to content

Commit

Permalink
Merge branch 'main' into linter-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed Aug 8, 2023
2 parents bd321ae + 812c1d7 commit d598eed
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ repos:
- types-setuptools
- typing-extensions
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8
additional_dependencies: *flake8deps
Expand All @@ -126,7 +126,7 @@ repos:
additional_dependencies:
- 'bandit[toml]'
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0
rev: v3.0.1
hooks:
- id: prettier
args: ['--single-quote', '--trailing-comma', 'es5']
Expand Down
2 changes: 1 addition & 1 deletion boxoffice/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def default(o: Any) -> Any:

# --- Configure ------------------------------------------------------------------------

coaster.app.init_app(app)
coaster.app.init_app(app, ['py', 'env'], env_prefix=['FLASK', 'APP_BOXOFFICE'])
db.init_app(app)
migrate = Migrate(app, db)
rq.init_app(app)
Expand Down
7 changes: 7 additions & 0 deletions wsgi.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
import os.path
import sys

from flask.cli import load_dotenv
from flask.helpers import get_load_dotenv

__all__ = ['application']

sys.path.insert(0, os.path.dirname(__file__))
if get_load_dotenv():
load_dotenv()

# pylint: disable=wrong-import-position
from boxoffice import app as application # isort:skip

0 comments on commit d598eed

Please sign in to comment.