Skip to content

Commit 6276634

Browse files
committed
Oh, deepsource
1 parent 4515321 commit 6276634

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

Diff for: MANIFEST.in

+2
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ graft src
33
prune src/instance
44

55
include LICENSE
6+
7+
global-exclude *.pyc

Diff for: src/bip/app.py

+9-6
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,10 @@ def serve_attachment(filename):
9191

9292

9393
def configure_logging_handler(app: Application):
94-
"""Bind application logging to Gunicorn handler. This is done only in
95-
production and only if Gunicorn logger has any handlers defined.
94+
"""Bind application logging to Gunicorn handler.
95+
96+
This is done only in production and only if Gunicorn logger has any
97+
handlers defined.
9698
9799
:param app: application object
98100
:type app: Application
@@ -105,7 +107,7 @@ def configure_logging_handler(app: Application):
105107
app.logger.setLevel(gunicorn_logger.level)
106108

107109

108-
def configure_database(app: Application):
110+
def configure_database(_app: Application):
109111
"""Configure application database connectivity.
110112
111113
:param app: application object
@@ -141,7 +143,7 @@ def configure_database(app: Application):
141143

142144

143145
def configure_hooks(app: Application):
144-
"""Setup application lifetime hooks.
146+
"""Set up application lifetime hooks.
145147
146148
:param app: application object
147149
:type app: Application
@@ -230,8 +232,9 @@ def server_error_page(error): # pylint: disable=unused-variable
230232

231233

232234
def configure_logging():
233-
"""Configure application logging on prod. This configuration is
234-
overwritten if running under Gunicorn.
235+
"""Configure application logging on prod.
236+
237+
This configuration is overwritten if running under Gunicorn.
235238
"""
236239
logging.config.dictConfig({
237240
'version': 1,

0 commit comments

Comments
 (0)