Changes import orders to pass H305 check
Changes import orders to H305 check in hacking 0.9.x Leaves H305 in ignore setting in tox.ini due to hacking is confused by oslo.* namespace when checking import rules see https://bugs.launchpad.net/hacking/+bug/1329363 Change-Id: I1701574b5e1a8cde1a044cda90a0c95360bb0825
This commit is contained in:
parent
fc2fc90eb0
commit
a3ca010d0a
@ -20,13 +20,13 @@ import logging
|
||||
|
||||
import fixtures
|
||||
import mock
|
||||
from oslo.config import cfg
|
||||
from oslotest import base as oslo_test
|
||||
import sqlalchemy
|
||||
from sqlalchemy import Column, MetaData, Table
|
||||
from sqlalchemy import Integer, String
|
||||
from sqlalchemy.ext.declarative import declarative_base
|
||||
|
||||
from oslo.config import cfg
|
||||
from oslo.db import exception
|
||||
from oslo.db import options as db_options
|
||||
from oslo.db.sqlalchemy import models
|
||||
|
@ -13,10 +13,10 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
import fixtures
|
||||
import uuid
|
||||
import warnings
|
||||
|
||||
import fixtures
|
||||
from migrate.changeset import UniqueConstraint
|
||||
import mock
|
||||
from oslotest import base as test_base
|
||||
|
3
tox.ini
3
tox.ini
@ -40,6 +40,9 @@ commands =
|
||||
[flake8]
|
||||
# H803 skipped on purpose per list discussion.
|
||||
# E123, E125 skipped as they are invalid PEP-8.
|
||||
# TODO(pblaho): enable H305 when hacking is patched
|
||||
# H305 skipped b/c of hacking is confused with oslo.* namespace
|
||||
# see https://bugs.launchpad.net/hacking/+bug/1329363
|
||||
|
||||
show-source = True
|
||||
ignore = E123,E125,E128,E265,H305,H307,H402,H405,H703,H803,H904
|
||||
|
Loading…
Reference in New Issue
Block a user