From fcd1a2e7fd515104eac97d21fa7b6cb16c5572a9 Mon Sep 17 00:00:00 2001 From: Joe Gordon Date: Wed, 19 Jun 2013 22:42:13 -0700 Subject: [PATCH] Enable Flake8 F*** checks. Fix and enable F*** Checks by removing unused imports. Change-Id: I39863a4664abff1349911546f16bfea055104e63 --- diskimage_builder/elements.py | 1 - diskimage_builder/test_elementdeps.py | 2 +- diskimage_builder/test_elements.py | 1 - tox.ini | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) 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