Add pep8 check for import order

Set flake8-import-order version to 0.17.1
Full py3 compatible version.
Add all Python3 modules to stdlib list.
Also includes fix to an enum34 dependency bug.

Change-Id: Iacbf2a96585fb6e4f784a2541bfad67bb0c9c0e4
This commit is contained in:
Riccardo Pittau 2020-04-21 15:46:44 +02:00
parent 54b5e78d82
commit 580936bba4
5 changed files with 5 additions and 2 deletions

View File

@ -3,6 +3,7 @@ coverage==4.0
docutils==0.11 docutils==0.11
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
openstackdocstheme==1.20.0 openstackdocstheme==1.20.0
oslotest==3.2.0 # Apache-2.0 oslotest==3.2.0 # Apache-2.0

View File

@ -17,7 +17,6 @@
import argparse import argparse
import json import json
import sys import sys
from urllib.parse import urlsplit from urllib.parse import urlsplit
from urllib.parse import urlunsplit from urllib.parse import urlunsplit

View File

@ -15,7 +15,6 @@
# under the License. # under the License.
from sushycli import base from sushycli import base
from sushycli import base_manager from sushycli import base_manager

View File

@ -7,4 +7,5 @@ coverage!=4.4,>=4.0 # Apache-2.0
oslotest>=3.2.0 # Apache-2.0 oslotest>=3.2.0 # Apache-2.0
stestr>=2.0.0 # Apache-2.0 stestr>=2.0.0 # Apache-2.0
testtools>=2.2.0 # MIT testtools>=2.2.0 # MIT
flake8-import-order>=0.17.1 # LGPLv3

View File

@ -59,6 +59,9 @@ show-source = True
ignore = E123, E125 ignore = E123, E125
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 = sushycli
filename = *.py
[testenv:lower-constraints] [testenv:lower-constraints]
deps = deps =