diff --git a/diskimage_builder/elements.py b/diskimage_builder/elements.py index 9c441c10..d10f42e3 100644 --- a/diskimage_builder/elements.py +++ b/diskimage_builder/elements.py @@ -14,7 +14,6 @@ # under the License. import argparse -from errno import ENOENT import os import sys diff --git a/diskimage_builder/test_elementdeps.py b/diskimage_builder/test_elementdeps.py index be704f33..eecefc5d 100644 --- a/diskimage_builder/test_elementdeps.py +++ b/diskimage_builder/test_elementdeps.py @@ -16,7 +16,7 @@ import os from testtools import TestCase -from fixtures import Fixture, EnvironmentVariable, TempDir +from fixtures import EnvironmentVariable, TempDir from diskimage_builder.elements import expand_dependencies from diskimage_builder.elements import get_elements_dir diff --git a/diskimage_builder/test_elements.py b/diskimage_builder/test_elements.py index 503277e8..fa6d9d24 100644 --- a/diskimage_builder/test_elements.py +++ b/diskimage_builder/test_elements.py @@ -15,7 +15,6 @@ import os import sys -import unittest class StubPackage: diff --git a/tox.ini b/tox.ini index 1134f9db..5a711fae 100644 --- a/tox.ini +++ b/tox.ini @@ -40,7 +40,7 @@ commands = bash -c 'if [ ! -d ./.testrepository ] ; then testr init ; fi' downloadcache = ~/cache/pip [flake8] -ignore = E125,F,H +ignore = E125,H builtins = _ exclude = .venv,.git,.tox,dist,doc,*openstack/common*,*lib/python*,*egg,build