Enforce import order with flake8-import-order
Use flake8-import-order to enforce the correct order of imports (stdlib, third-party, project). Change-Id: I5cadb10ee418dd1f5e8a7d407a93d95ebcbaedb8
This commit is contained in:
parent
9d19bb93f3
commit
55376b85ff
|
@ -3,6 +3,7 @@
|
|||
# process, which may cause wedges in the gate later.
|
||||
|
||||
hacking>=3.1.0,<3.2.0 # Apache-2.0
|
||||
flake8-import-order # LGPLv3
|
||||
coverage>=5.2.1 # Apache-2.0
|
||||
ddt>=1.4.1 # MIT
|
||||
oslotest>=4.4.1 # Apache-2.0
|
||||
|
|
2
tox.ini
2
tox.ini
|
@ -113,6 +113,8 @@ enable-extensions=H106,H203,H204,H205
|
|||
builtins = _
|
||||
exclude=.venv,.git,.tox,dist,*lib/python*,*egg,build
|
||||
max-complexity=30
|
||||
application-import-names = os_brick
|
||||
import-order-style = pep8
|
||||
|
||||
[doc8]
|
||||
ignore-path=.tox,*.egg-info,doc/src/api,doc/source/drivers.rst,doc/build,.eggs/*/EGG-INFO/*.txt,doc/source/configuration/tables,./*.txt,releasenotes/build
|
||||
|
|
Loading…
Reference in New Issue