Add pep8 import order check

Set flake8-import-order version to 0.17.1
Full py3 compatible version.
Add all Python3 modules to stdlib list.

Change-Id: I3f8fb265842df0ea72e6dfa3eea23c934258d864
This commit is contained in:
Riccardo Pittau 2020-05-05 11:20:33 +02:00
parent 6478da8b4d
commit dfbb6f5467
5 changed files with 7 additions and 2 deletions

View File

@ -7,6 +7,7 @@ dulwich==0.15.0
extras==1.0.0 extras==1.0.0
fixtures==3.0.0 fixtures==3.0.0
flake8==2.5.5 flake8==2.5.5
flake8-import-order==0.17.1
hacking==3.0.0 hacking==3.0.0
imagesize==0.7.1 imagesize==0.7.1
iso8601==0.1.11 iso8601==0.1.11

View File

@ -14,8 +14,8 @@
# under the License. # under the License.
import json import json
import mock
import mock
from oslotest.base import BaseTestCase from oslotest.base import BaseTestCase
import sushy import sushy
from sushy.resources.manager import manager from sushy.resources.manager import manager

View File

@ -14,8 +14,8 @@
# under the License. # under the License.
import json import json
import mock
import mock
from oslotest.base import BaseTestCase from oslotest.base import BaseTestCase
from sushy import main from sushy import main

View File

@ -12,6 +12,7 @@ oslotest>=3.2.0 # Apache-2.0
stestr>=2.0.0 # Apache-2.0 stestr>=2.0.0 # Apache-2.0
testscenarios>=0.4 # Apache-2.0/BSD testscenarios>=0.4 # Apache-2.0/BSD
testtools>=2.2.0 # MIT testtools>=2.2.0 # MIT
flake8-import-order>=0.17.1 # LGPLv3
# releasenotes # releasenotes
reno>=2.5.0 # Apache-2.0 reno>=2.5.0 # Apache-2.0

View File

@ -60,6 +60,9 @@ ignore = E123,E125
enable-extensions=H106,H203,H204,H205,H210,H904 enable-extensions=H106,H203,H204,H205,H210,H904
builtins = _ builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build
import-order-style = pep8
application-import-names = sushy_oem_idrac
filename = *.py
[testenv:lower-constraints] [testenv:lower-constraints]
deps = deps =