Fixed pep8 job

Upgraded hacking and fixed issues with code. This fixes pep8 job
which was failing on py38 as dependencies were too old.

Change-Id: I1b1a980eb1cb7ad0a6754b3aebfb3e3e1617c3be
This commit is contained in:
Sorin Sbarnea 2020-09-11 16:21:48 +01:00
parent 75541dad5b
commit 509d18edae
4 changed files with 6 additions and 4 deletions

View File

@ -335,7 +335,7 @@ class Depends(object):
if (distro_id == 'ubuntu' and release_version >=
as_ver("16.04")) or (distro_id == 'debian' and
release_version >= as_ver("10")):
atoms.add(PY3)
atoms.add(PY3)
else:
atoms.add(PY2)
self.platform = Dpkg()

View File

@ -94,5 +94,6 @@ def main(depends=None):
return 0
if __name__ == '__main__':
sys.exit(main())

View File

@ -1,5 +1,3 @@
hacking>=1.1,<1.2
coverage>=3.6
fixtures>=0.3.12
mock>=2.0 # BSD

View File

@ -14,6 +14,9 @@ commands =
python setup.py test --slowest --testr-args='{posargs}'
[testenv:pep8]
basepython = python3
deps =
hacking>=3.2.0,<3.3
commands = flake8
[testenv:venv]
@ -29,6 +32,6 @@ commands = sphinx-build -W -b html doc/source doc/build/html
# E123, E125 skipped as they are invalid PEP-8.
show-source = True
ignore = E123,E125,E129,H
ignore = E123,E125,E129,H,W503,W504
builtins = _
exclude=.venv,.git,.tox,dist,doc,*lib/python*,*egg,build