diff --git a/manila_ui/dashboards/admin/share_group_snapshots/tables.py b/manila_ui/dashboards/admin/share_group_snapshots/tables.py index 60c88337..3e13e6fd 100644 --- a/manila_ui/dashboards/admin/share_group_snapshots/tables.py +++ b/manila_ui/dashboards/admin/share_group_snapshots/tables.py @@ -13,7 +13,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.template.defaultfilters import title # noqa +from django.template.defaultfilters import title from django.urls import reverse from django.utils.translation import pgettext_lazy from django.utils.translation import ugettext_lazy as _ diff --git a/manila_ui/dashboards/admin/share_group_types/forms.py b/manila_ui/dashboards/admin/share_group_types/forms.py index 96ff9ff7..a10a5f5b 100644 --- a/manila_ui/dashboards/admin/share_group_types/forms.py +++ b/manila_ui/dashboards/admin/share_group_types/forms.py @@ -14,7 +14,7 @@ # under the License. from django.conf import settings -from django.forms import ValidationError # noqa +from django.forms import ValidationError from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/manila_ui/dashboards/admin/share_servers/tables.py b/manila_ui/dashboards/admin/share_servers/tables.py index a96aa97d..3184bfcc 100644 --- a/manila_ui/dashboards/admin/share_servers/tables.py +++ b/manila_ui/dashboards/admin/share_servers/tables.py @@ -10,7 +10,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.template.defaultfilters import title # noqa +from django.template.defaultfilters import title from django.urls import reverse from django.utils.translation import pgettext_lazy from django.utils.translation import ugettext_lazy as _ diff --git a/manila_ui/dashboards/admin/share_snapshots/tables.py b/manila_ui/dashboards/admin/share_snapshots/tables.py index 325a0525..d99e475f 100644 --- a/manila_ui/dashboards/admin/share_snapshots/tables.py +++ b/manila_ui/dashboards/admin/share_snapshots/tables.py @@ -11,7 +11,7 @@ # under the License. -from django.template.defaultfilters import title # noqa +from django.template.defaultfilters import title from django.urls import reverse from django.utils.translation import pgettext_lazy from django.utils.translation import ugettext_lazy as _ diff --git a/manila_ui/dashboards/admin/share_types/forms.py b/manila_ui/dashboards/admin/share_types/forms.py index c7117895..9ce22acd 100644 --- a/manila_ui/dashboards/admin/share_types/forms.py +++ b/manila_ui/dashboards/admin/share_types/forms.py @@ -14,7 +14,7 @@ # under the License. from django.conf import settings -from django.forms import ValidationError # noqa +from django.forms import ValidationError from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/manila_ui/dashboards/admin/shares/forms.py b/manila_ui/dashboards/admin/shares/forms.py index 8af1a522..af46667e 100644 --- a/manila_ui/dashboards/admin/shares/forms.py +++ b/manila_ui/dashboards/admin/shares/forms.py @@ -14,7 +14,7 @@ # under the License. from django.conf import settings -from django.forms import ValidationError # noqa +from django.forms import ValidationError from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from horizon import exceptions diff --git a/manila_ui/dashboards/project/security_services/forms.py b/manila_ui/dashboards/project/security_services/forms.py index af89b124..8b742856 100644 --- a/manila_ui/dashboards/project/security_services/forms.py +++ b/manila_ui/dashboards/project/security_services/forms.py @@ -13,15 +13,13 @@ # License for the specific language governing permissions and limitations # under the License. -from django.forms import ValidationError # noqa -from django.template.defaultfilters import filesizeformat # noqa +from django.forms import ValidationError from django.urls import reverse from django.utils.translation import ugettext_lazy as _ -from django.views.decorators.debug import sensitive_variables # noqa +from django.views.decorators.debug import sensitive_variables from horizon import exceptions from horizon import forms from horizon import messages -from horizon.utils.memoized import memoized # noqa from manila_ui.api import manila diff --git a/manila_ui/dashboards/project/share_group_snapshots/tables.py b/manila_ui/dashboards/project/share_group_snapshots/tables.py index 21d0b0fa..b155cf75 100644 --- a/manila_ui/dashboards/project/share_group_snapshots/tables.py +++ b/manila_ui/dashboards/project/share_group_snapshots/tables.py @@ -13,9 +13,9 @@ # License for the specific language governing permissions and limitations # under the License. -from django.template.defaultfilters import title # noqa +from django.template.defaultfilters import title from django.urls import reverse -from django.utils.http import urlencode # noqa +from django.utils.http import urlencode from django.utils.translation import pgettext_lazy from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ungettext_lazy diff --git a/manila_ui/dashboards/project/share_groups/forms.py b/manila_ui/dashboards/project/share_groups/forms.py index 7ff273ef..d7cd2673 100644 --- a/manila_ui/dashboards/project/share_groups/forms.py +++ b/manila_ui/dashboards/project/share_groups/forms.py @@ -13,7 +13,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.forms import ValidationError # noqa +from django.forms import ValidationError from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from horizon import exceptions diff --git a/manila_ui/dashboards/project/share_networks/forms.py b/manila_ui/dashboards/project/share_networks/forms.py index a2919ed1..4fd68c10 100644 --- a/manila_ui/dashboards/project/share_networks/forms.py +++ b/manila_ui/dashboards/project/share_networks/forms.py @@ -13,14 +13,11 @@ # License for the specific language governing permissions and limitations # under the License. -from django.forms import ValidationError # noqa -from django.template.defaultfilters import filesizeformat # noqa from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms from horizon import messages -from horizon.utils.memoized import memoized # noqa from openstack_dashboard.api import base from openstack_dashboard.api import neutron diff --git a/manila_ui/dashboards/project/share_networks/tables.py b/manila_ui/dashboards/project/share_networks/tables.py index 495e6a25..8b48a6ac 100644 --- a/manila_ui/dashboards/project/share_networks/tables.py +++ b/manila_ui/dashboards/project/share_networks/tables.py @@ -12,10 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.template.defaultfilters import title # noqa -from django.urls import NoReverseMatch # noqa from django.utils.translation import pgettext_lazy -from django.utils.translation import string_concat # noqa from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ungettext_lazy from horizon import tables diff --git a/manila_ui/dashboards/project/share_snapshots/forms.py b/manila_ui/dashboards/project/share_snapshots/forms.py index a5331cb0..d061c46b 100644 --- a/manila_ui/dashboards/project/share_snapshots/forms.py +++ b/manila_ui/dashboards/project/share_snapshots/forms.py @@ -17,10 +17,7 @@ Views for managing share snapshots. """ -from django.forms import ValidationError # noqa -from django.template.defaultfilters import filesizeformat # noqa from django.urls import reverse -from django.utils.http import urlencode # noqa from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms diff --git a/manila_ui/dashboards/project/share_snapshots/tables.py b/manila_ui/dashboards/project/share_snapshots/tables.py index 44cb06c4..a609e3f5 100644 --- a/manila_ui/dashboards/project/share_snapshots/tables.py +++ b/manila_ui/dashboards/project/share_snapshots/tables.py @@ -12,12 +12,11 @@ # License for the specific language governing permissions and limitations # under the License. -from django.template.defaultfilters import title # noqa -from django.urls import NoReverseMatch # noqa +from django.template.defaultfilters import title from django.urls import reverse -from django.utils.http import urlencode # noqa +from django.utils.http import urlencode from django.utils.translation import pgettext_lazy -from django.utils.translation import string_concat # noqa +from django.utils.translation import string_concat from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ungettext_lazy from horizon import exceptions diff --git a/manila_ui/dashboards/project/shares/forms.py b/manila_ui/dashboards/project/shares/forms.py index 60db6be6..a943c8b0 100644 --- a/manila_ui/dashboards/project/shares/forms.py +++ b/manila_ui/dashboards/project/shares/forms.py @@ -14,14 +14,13 @@ # under the License. from django.conf import settings -from django.forms import ValidationError # noqa -from django.template.defaultfilters import filesizeformat # noqa +from django.forms import ValidationError from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from horizon import exceptions from horizon import forms from horizon import messages -from horizon.utils.memoized import memoized # noqa +from horizon.utils.memoized import memoized import six from manila_ui.api import manila diff --git a/manila_ui/dashboards/project/shares/tables.py b/manila_ui/dashboards/project/shares/tables.py index 5206a606..e75a6225 100644 --- a/manila_ui/dashboards/project/shares/tables.py +++ b/manila_ui/dashboards/project/shares/tables.py @@ -12,11 +12,10 @@ # License for the specific language governing permissions and limitations # under the License. -from django.template.defaultfilters import title # noqa -from django.urls import NoReverseMatch # noqa +from django.template.defaultfilters import title from django.urls import reverse -from django.utils.translation import string_concat, ugettext_lazy # noqa from django.utils.translation import pgettext_lazy +from django.utils.translation import string_concat from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ungettext_lazy from horizon import exceptions diff --git a/manila_ui/dashboards/utils.py b/manila_ui/dashboards/utils.py index 8c70d211..567c4de8 100644 --- a/manila_ui/dashboards/utils.py +++ b/manila_ui/dashboards/utils.py @@ -12,7 +12,7 @@ # License for the specific language governing permissions and limitations # under the License. -from django.forms import ValidationError # noqa +from django.forms import ValidationError from django.utils.safestring import mark_safe from django.utils.translation import ugettext_lazy as _ diff --git a/manila_ui/tests/dashboards/test_utils.py b/manila_ui/tests/dashboards/test_utils.py index a17fdc4b..e9cbd886 100644 --- a/manila_ui/tests/dashboards/test_utils.py +++ b/manila_ui/tests/dashboards/test_utils.py @@ -14,7 +14,7 @@ # under the License. import ddt -from django.forms import ValidationError # noqa +from django.forms import ValidationError from manila_ui.dashboards import utils from manila_ui.tests import helpers as base diff --git a/manila_ui/utils/filters.py b/manila_ui/utils/filters.py index 5f0edf66..55b57a36 100644 --- a/manila_ui/utils/filters.py +++ b/manila_ui/utils/filters.py @@ -13,7 +13,7 @@ # under the License. -from django.template.defaultfilters import register # noqa +from django.template.defaultfilters import register @register.filter