Upgrade to latest hacking - v6
Includes a single minor change to comply with latest flake8. Change-Id: Ifda4810940f5c4d963946939f103f65175cc7868
This commit is contained in:
parent
7a00c0d674
commit
853bedce5c
|
@ -149,7 +149,7 @@ def count_mbr_partitions(device):
|
||||||
output = output.replace('<', '').replace('>', '')
|
output = output.replace('<', '').replace('>', '')
|
||||||
partitions = [int(s) for s in output.split() if s.isdigit()]
|
partitions = [int(s) for s in output.split() if s.isdigit()]
|
||||||
|
|
||||||
return(sum(i < 5 for i in partitions), sum(i > 4 for i in partitions))
|
return (sum(i < 5 for i in partitions), sum(i > 4 for i in partitions))
|
||||||
|
|
||||||
|
|
||||||
def get_disk_identifier(dev):
|
def get_disk_identifier(dev):
|
||||||
|
|
2
tox.ini
2
tox.ini
|
@ -36,7 +36,7 @@ enable-extensions=H106,H203,H204,H205,H210,H904
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
deps =
|
deps =
|
||||||
flake8-import-order>=0.17.1 # LGPLv3
|
flake8-import-order>=0.17.1 # LGPLv3
|
||||||
hacking>=4.1.0,<5.0.0 # Apache-2.0
|
hacking~=6.0.0 # Apache-2.0
|
||||||
pycodestyle>=2.0.0,<3.0.0 # MIT
|
pycodestyle>=2.0.0,<3.0.0 # MIT
|
||||||
Pygments>=2.2.0 # BSD
|
Pygments>=2.2.0 # BSD
|
||||||
doc8>=0.6.0 # Apache 2.0
|
doc8>=0.6.0 # Apache 2.0
|
||||||
|
|
Loading…
Reference in New Issue