Enable H306 check
H306 imports not in alphabetical order Change-Id: Ief2accac748248ebf46d4e49230662ff9b233053
This commit is contained in:
parent
26d23da50a
commit
59ef565871
@ -1,7 +1,7 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
from django.utils.translation import ugettext_lazy as _
|
|
||||||
from django import template
|
from django import template
|
||||||
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
from horizon import tables
|
from horizon import tables
|
||||||
|
|
||||||
|
@ -21,10 +21,10 @@
|
|||||||
from django.conf.urls.defaults import patterns
|
from django.conf.urls.defaults import patterns
|
||||||
from django.conf.urls.defaults import url
|
from django.conf.urls.defaults import url
|
||||||
|
|
||||||
from openstack_dashboard.dashboards.project.instances.views import \
|
|
||||||
DetailView
|
|
||||||
from .views import AdminIndexView
|
from .views import AdminIndexView
|
||||||
from .views import AdminUpdateView
|
from .views import AdminUpdateView
|
||||||
|
from openstack_dashboard.dashboards.project.instances.views import \
|
||||||
|
DetailView
|
||||||
|
|
||||||
|
|
||||||
INSTANCES = r'^(?P<instance_id>[^/]+)/%s$'
|
INSTANCES = r'^(?P<instance_id>[^/]+)/%s$'
|
||||||
|
@ -21,12 +21,12 @@ from openstack_dashboard.dashboards.project.loadbalancers.views import \
|
|||||||
AddMemberView
|
AddMemberView
|
||||||
from openstack_dashboard.dashboards.project.loadbalancers.views import \
|
from openstack_dashboard.dashboards.project.loadbalancers.views import \
|
||||||
AddMonitorView
|
AddMonitorView
|
||||||
|
from openstack_dashboard.dashboards.project.loadbalancers.views import \
|
||||||
|
AddPMAssociationView
|
||||||
from openstack_dashboard.dashboards.project.loadbalancers.views import \
|
from openstack_dashboard.dashboards.project.loadbalancers.views import \
|
||||||
AddPoolView
|
AddPoolView
|
||||||
from openstack_dashboard.dashboards.project.loadbalancers.views import \
|
from openstack_dashboard.dashboards.project.loadbalancers.views import \
|
||||||
AddVipView
|
AddVipView
|
||||||
from openstack_dashboard.dashboards.project.loadbalancers.views import \
|
|
||||||
AddPMAssociationView
|
|
||||||
from openstack_dashboard.dashboards.project.loadbalancers.views import \
|
from openstack_dashboard.dashboards.project.loadbalancers.views import \
|
||||||
DeletePMAssociationView
|
DeletePMAssociationView
|
||||||
from openstack_dashboard.dashboards.project.loadbalancers.views import \
|
from openstack_dashboard.dashboards.project.loadbalancers.views import \
|
||||||
|
@ -18,8 +18,9 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
from django.template.defaultfilters import floatformat
|
|
||||||
from django.template.defaultfilters import capfirst
|
from django.template.defaultfilters import capfirst
|
||||||
|
from django.template.defaultfilters import floatformat
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import ugettext as _
|
||||||
from django.views.generic import TemplateView
|
from django.views.generic import TemplateView
|
||||||
|
|
||||||
|
@ -7,11 +7,11 @@ import datetime
|
|||||||
import logging
|
import logging
|
||||||
from StringIO import StringIO
|
from StringIO import StringIO
|
||||||
|
|
||||||
from django import template as django_template
|
|
||||||
from django import VERSION
|
|
||||||
from django.http import HttpResponse
|
from django.http import HttpResponse
|
||||||
|
from django import template as django_template
|
||||||
from django.utils import timezone
|
from django.utils import timezone
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
from django import VERSION
|
||||||
|
|
||||||
from horizon import exceptions
|
from horizon import exceptions
|
||||||
from horizon import forms
|
from horizon import forms
|
||||||
|
3
tox.ini
3
tox.ini
@ -44,8 +44,7 @@ exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build,p
|
|||||||
# H302 import only modules.'from optparse import make_option' does not import a module
|
# H302 import only modules.'from optparse import make_option' does not import a module
|
||||||
# H303 No wildcard (*) import.
|
# H303 No wildcard (*) import.
|
||||||
# H304 No relative imports. 'from .views import IndexView' is a relative import
|
# H304 No relative imports. 'from .views import IndexView' is a relative import
|
||||||
# H306 imports not in alphabetical order (horizon.loaders, horizon.conf)
|
|
||||||
# H4xx docstrings
|
# H4xx docstrings
|
||||||
# H701 empty localization string
|
# H701 empty localization string
|
||||||
# H702 Formatting operation should be outside of localization method call
|
# H702 Formatting operation should be outside of localization method call
|
||||||
ignore = E121,E126,E127,E128,F403,F841,F999,H201,H302,H303,H304,H306,H4,H701,H702
|
ignore = E121,E126,E127,E128,F403,F841,F999,H201,H302,H303,H304,H4,H701,H702
|
||||||
|
Loading…
x
Reference in New Issue
Block a user