Merge "Use flake8-import-order plugin"

This commit is contained in:
Jenkins 2017-08-29 09:10:16 +00:00 committed by Gerrit Code Review
commit eedff691c0
3 changed files with 7 additions and 1 deletions

View File

@ -20,10 +20,11 @@ HORIZON_CONFIG.pop('dashboards', None)
HORIZON_CONFIG.pop('default_dashboard', None)
# Update the dashboards with neutron_vpnaas_dashboard
import neutron_vpnaas_dashboard.enabled
import openstack_dashboard.enabled
from openstack_dashboard.utils import settings
import neutron_vpnaas_dashboard.enabled
settings.update_dashboards(
[
openstack_dashboard.enabled,

View File

@ -7,6 +7,7 @@ hacking!=0.13.0,<0.14,>=0.12.0 # Apache-2.0
coverage!=4.4,>=4.0 # Apache-2.0
django-nose>=1.4.4 # BSD
flake8-import-order==0.13 # LGPLv3
mock>=2.0.0 # BSD
mox3!=0.19.0,>=0.7.0 # Apache-2.0
python-subunit>=0.0.18 # Apache-2.0/BSD

View File

@ -57,5 +57,9 @@ exclude = .venv,.git,.tox,dist,*lib/python*,*egg,build,node_modules
enable-extensions=H203,H904
max-complexity = 20
# flake8-import-order configurations
import-order-style = pep8
application-import-names = neutron_vpnaas_dashboard
[hacking]
local-check-factory = horizon.hacking.checks.factory