Resolve pep8 import issues
* H301 one import per line * H302 import only modules * H306 imports not in alphabetical order copy from horizon. Change-Id: Ie3fb071fef7e8889ad273e1838967ef95c73630f
This commit is contained in:
@@ -13,7 +13,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
import horizon
|
import horizon
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
from django.core import urlresolvers
|
from django.core import urlresolvers
|
||||||
from django.utils import http
|
from django.utils import http
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
from horizon import tables
|
from horizon import tables
|
||||||
|
|
||||||
from solumdashboard.api.client import client as solumclient
|
from solumdashboard.api.client import client as solumclient
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
from horizon import tabs
|
from horizon import tabs
|
||||||
|
|
||||||
from solumdashboard.api.client import client as solumclient
|
from solumdashboard.api.client import client as solumclient
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
|
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
from horizon import forms
|
from horizon import forms
|
||||||
from horizon import workflows
|
from horizon import workflows
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
from horizon import forms
|
from horizon import forms
|
||||||
from horizon import workflows
|
from horizon import workflows
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
import horizon
|
import horizon
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
from horizon import tables
|
from horizon import tables
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
from horizon import tabs
|
from horizon import tabs
|
||||||
|
|
||||||
from solumdashboard.api.client import client as solumclient
|
from solumdashboard.api.client import client as solumclient
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
import horizon
|
import horizon
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
||||||
from django.utils.translation import ugettext as _
|
from django.utils.translation import ugettext_lazy as _
|
||||||
|
|
||||||
from horizon.test.settings import * # noqa
|
from horizon.test.settings import * # noqa
|
||||||
from horizon.utils import secret_key as secret_key_utils
|
from horizon.utils import secret_key as secret_key_utils
|
||||||
|
|||||||
22
tox.ini
22
tox.ini
@@ -30,4 +30,24 @@ builtins = _
|
|||||||
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools,horizon
|
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,tools,horizon
|
||||||
|
|
||||||
[hacking]
|
[hacking]
|
||||||
import_exceptions = django.utils.translation.ugettext
|
import_exceptions = collections.defaultdict,
|
||||||
|
collections.OrderedDict,
|
||||||
|
django.conf.settings,
|
||||||
|
django.conf.urls.include,
|
||||||
|
django.conf.urls.patterns,
|
||||||
|
django.conf.urls.url,
|
||||||
|
django.core.urlresolvers.reverse,
|
||||||
|
django.core.urlresolvers.reverse_lazy,
|
||||||
|
django.template.loader.render_to_string,
|
||||||
|
django.test.utils.override_settings,
|
||||||
|
django.utils.encoding.force_text,
|
||||||
|
django.utils.html.conditional_escape,
|
||||||
|
django.utils.html.escape,
|
||||||
|
django.utils.http.urlencode,
|
||||||
|
django.utils.safestring.mark_safe,
|
||||||
|
django.utils.translation.npgettext_lazy,
|
||||||
|
django.utils.translation.pgettext_lazy,
|
||||||
|
django.utils.translation.ugettext_lazy,
|
||||||
|
django.utils.translation.ungettext_lazy,
|
||||||
|
operator.attrgetter,
|
||||||
|
StringIO.StringIO
|
||||||
|
|||||||
Reference in New Issue
Block a user