Merge "Add pep8 import order check"

This commit is contained in:
Zuul 2020-04-27 20:09:54 +00:00 committed by Gerrit Code Review
commit 3c5d8372be
11 changed files with 20 additions and 7 deletions

View File

@ -9,6 +9,7 @@ docutils==0.11
dulwich==0.15.0
extras==1.0.0
fixtures==3.0.0
flake8-import-order==0.17.1
Flask-SQLAlchemy==2.0
Flask-RESTful==0.3.5
Flask==1.0.2

View File

@ -14,6 +14,7 @@
# under the License.
import abc
import six
from sushy_tools.emulator import base

View File

@ -14,6 +14,7 @@
# under the License.
import abc
import six
from sushy_tools.emulator import base

View File

@ -14,6 +14,7 @@
# under the License.
import abc
import six
from sushy_tools.emulator.resources.base import DriverBase

View File

@ -12,9 +12,11 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import uuid
from sushy_tools.emulator import memoize
from sushy_tools.emulator.resources.base import DriverBase
import uuid
class StaticDriver(DriverBase):

View File

@ -14,12 +14,12 @@
# under the License.
import uuid
from sushy_tools.emulator.resources.chassis.staticdriver import StaticDriver
from sushy_tools import error
from oslotest import base
from six.moves import mock
from sushy_tools.emulator.resources.chassis.staticdriver import StaticDriver
from sushy_tools import error
class StaticDriverTestCase(base.BaseTestCase):

View File

@ -12,11 +12,12 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from sushy_tools.emulator.resources.drives.staticdriver import StaticDriver
from oslotest import base
from six.moves import mock
from sushy_tools.emulator.resources.drives.staticdriver import StaticDriver
class StaticDriverTestCase(base.BaseTestCase):
SYSTEM_UUID = "da69abcc-dae0-4913-9a7b-d344043097c0"

View File

@ -12,11 +12,12 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from sushy_tools.emulator.resources.storage.staticdriver import StaticDriver
from oslotest import base
from six.moves import mock
from sushy_tools.emulator.resources.storage.staticdriver import StaticDriver
class StaticDriverTestCase(base.BaseTestCase):
UUID = "da69abcc-dae0-4913-9a7b-d344043097c0"

View File

@ -12,11 +12,11 @@
import sys
import uuid
import xml.etree.ElementTree as ET
import libvirt
from oslotest import base
from six.moves import mock
import xml.etree.ElementTree as ET
from sushy_tools.emulator.resources.systems.libvirtdriver import LibvirtDriver
from sushy_tools import error

View File

@ -18,3 +18,5 @@ testscenarios>=0.4 # Apache-2.0/BSD
testtools>=2.2.0 # MIT
munch>=2.1.0 # MIT
reno>=2.5.0 # Apache-2.0
flake8-import-order>=0.17.1 # LGPLv3

View File

@ -56,6 +56,9 @@ show-source = True
ignore = E123,E125,W503
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
import-order-style = pep8
application-import-names = sushy_tools
filename = *.py
[testenv:lower-constraints]
deps =