From 915f97d93f70a08c39ade79dbaec38c2f8dc7235 Mon Sep 17 00:00:00 2001 From: Vu Cong Tuan Date: Tue, 28 Nov 2017 15:22:12 +0700 Subject: [PATCH] Apply pep8 check to app.wsgi Because app.wsgi should meet pep8 standards, this patch apply pep8 check to app.wsgi. Change-Id: Ie81361de324b7b297025c2b6a2d3ef33c739aa6d --- tox.ini | 1 + vitrage/api/app.wsgi | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/tox.ini b/tox.ini index 347ffbf87..66032eb27 100644 --- a/tox.ini +++ b/tox.ini @@ -49,6 +49,7 @@ show-source = True ignore = E123,E125 enable-extensions=H106,H203 builtins = _ +filename = *.py,app.wsgi exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build [hacking] diff --git a/vitrage/api/app.wsgi b/vitrage/api/app.wsgi index 17879921b..b5b2e59ec 100644 --- a/vitrage/api/app.wsgi +++ b/vitrage/api/app.wsgi @@ -13,11 +13,9 @@ """Use this file for deploying the API under mod_wsgi. See http://pecan.readthedocs.org/en/latest/deployment.html for details. """ -from oslo_config import cfg - from vitrage.api import app from vitrage import service # Initialize the oslo configuration library and logging conf = service.prepare_service() -application = app.load_app(conf) \ No newline at end of file +application = app.load_app(conf)