Fix F* pep8 warnings
List of fixed warnings: F401, F403, F821
Change-Id: Iceb74ea81b3f4bb358dc331ba289dd1588c152fc
Reviewed-on: https://review.gerrithub.io/379376
Reviewed-by: Dennis Dmitriev <dis.xcom@gmail.com>
Tested-by: Dennis Dmitriev <dis.xcom@gmail.com>
diff --git a/tcp_tests/fixtures/common_fixtures.py b/tcp_tests/fixtures/common_fixtures.py
index 5f7a22e..9d6ccba 100644
--- a/tcp_tests/fixtures/common_fixtures.py
+++ b/tcp_tests/fixtures/common_fixtures.py
@@ -19,7 +19,6 @@
from tcp_tests import logger
from tcp_tests.helpers import log_step
-from tcp_tests.helpers import utils
LOG = logger.logger
diff --git a/tcp_tests/fixtures/common_services_fixtures.py b/tcp_tests/fixtures/common_services_fixtures.py
index f629dd2..5d4c56a 100644
--- a/tcp_tests/fixtures/common_services_fixtures.py
+++ b/tcp_tests/fixtures/common_services_fixtures.py
@@ -12,14 +12,10 @@
# License for the specific language governing permissions and limitations
# under the License.
-import os
-
import pytest
-import yaml
from tcp_tests import logger
from tcp_tests.helpers import ext
-from tcp_tests import settings
from tcp_tests.managers import common_services_manager
LOG = logger.logger
diff --git a/tcp_tests/fixtures/decapod_fixtures.py b/tcp_tests/fixtures/decapod_fixtures.py
index ddbb8c9..7f064c5 100644
--- a/tcp_tests/fixtures/decapod_fixtures.py
+++ b/tcp_tests/fixtures/decapod_fixtures.py
@@ -12,14 +12,10 @@
# License for the specific language governing permissions and limitations
# under the License.
-import os
-
import pytest
-import yaml
from tcp_tests import logger
from tcp_tests.helpers import ext
-from tcp_tests import settings
from tcp_tests.managers import decapod_manager
LOG = logger.logger
diff --git a/tcp_tests/fixtures/openstack_fixtures.py b/tcp_tests/fixtures/openstack_fixtures.py
index ae3b9e8..a704ee6 100644
--- a/tcp_tests/fixtures/openstack_fixtures.py
+++ b/tcp_tests/fixtures/openstack_fixtures.py
@@ -12,16 +12,11 @@
# License for the specific language governing permissions and limitations
# under the License.
-import os
-
import pytest
-import yaml
from tcp_tests import logger
from tcp_tests.helpers import ext
-from tcp_tests import settings
from tcp_tests.managers import openstack_manager
-from tcp_tests.helpers import utils
LOG = logger.logger
diff --git a/tcp_tests/fixtures/oss_fixtures.py b/tcp_tests/fixtures/oss_fixtures.py
index 9846333..d46427b 100644
--- a/tcp_tests/fixtures/oss_fixtures.py
+++ b/tcp_tests/fixtures/oss_fixtures.py
@@ -12,14 +12,10 @@
# License for the specific language governing permissions and limitations
# under the License.
-import os
-
import pytest
-import yaml
from tcp_tests import logger
from tcp_tests.helpers import ext
-from tcp_tests import settings
from tcp_tests.managers import oss_manager
LOG = logger.logger
diff --git a/tcp_tests/fixtures/underlay_fixtures.py b/tcp_tests/fixtures/underlay_fixtures.py
index 4f1186b..e1420b5 100644
--- a/tcp_tests/fixtures/underlay_fixtures.py
+++ b/tcp_tests/fixtures/underlay_fixtures.py
@@ -13,7 +13,6 @@
# under the License.
import pytest
-from datetime import datetime
from tcp_tests.helpers import ext
from tcp_tests.helpers import utils
diff --git a/tcp_tests/helpers/ext.py b/tcp_tests/helpers/ext.py
index e525eea..f7b8005 100644
--- a/tcp_tests/helpers/ext.py
+++ b/tcp_tests/helpers/ext.py
@@ -14,8 +14,6 @@
import collections
-from enum import IntEnum
-
def enum(*values, **kwargs):
names = kwargs.get('names')
diff --git a/tcp_tests/helpers/utils.py b/tcp_tests/helpers/utils.py
index 922f5f2..76641bd 100644
--- a/tcp_tests/helpers/utils.py
+++ b/tcp_tests/helpers/utils.py
@@ -16,7 +16,6 @@
import os
import shutil
import StringIO
-import tempfile
import time
import traceback
diff --git a/tcp_tests/tests/environment/conftest.py b/tcp_tests/tests/environment/conftest.py
index 50ab685..47ca68a 100644
--- a/tcp_tests/tests/environment/conftest.py
+++ b/tcp_tests/tests/environment/conftest.py
@@ -12,14 +12,14 @@
# License for the specific language governing permissions and limitations
# under the License.
-from tcp_tests.fixtures.common_fixtures import *
-from tcp_tests.fixtures.config_fixtures import *
-from tcp_tests.fixtures.underlay_fixtures import *
-from tcp_tests.fixtures.rally_fixtures import *
-from tcp_tests.fixtures.salt_fixtures import *
-from tcp_tests.fixtures.common_services_fixtures import *
-from tcp_tests.fixtures.openstack_fixtures import *
-from tcp_tests.fixtures.opencontrail_fixtures import *
+from tcp_tests.fixtures.common_fixtures import * # noqa
+from tcp_tests.fixtures.config_fixtures import * # noqa
+from tcp_tests.fixtures.underlay_fixtures import * # noqa
+from tcp_tests.fixtures.rally_fixtures import * # noqa
+from tcp_tests.fixtures.salt_fixtures import * # noqa
+from tcp_tests.fixtures.common_services_fixtures import * # noqa
+from tcp_tests.fixtures.openstack_fixtures import * # noqa
+from tcp_tests.fixtures.opencontrail_fixtures import * # noqa
__all__ = sorted([ # sort for documentation
# common_fixtures
diff --git a/tcp_tests/tests/environment/test_ironic_standalone.py b/tcp_tests/tests/environment/test_ironic_standalone.py
index c119bbc..2a76e9f 100644
--- a/tcp_tests/tests/environment/test_ironic_standalone.py
+++ b/tcp_tests/tests/environment/test_ironic_standalone.py
@@ -11,14 +11,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-import copy
-import os
-import time
import pytest
-from tcp_tests import settings
-from tcp_tests.helpers import ext
from tcp_tests import logger
LOG = logger.logger
diff --git a/tcp_tests/tests/system/conftest.py b/tcp_tests/tests/system/conftest.py
index d943a22..9089870 100644
--- a/tcp_tests/tests/system/conftest.py
+++ b/tcp_tests/tests/system/conftest.py
@@ -12,20 +12,20 @@
# License for the specific language governing permissions and limitations
# under the License.
-from tcp_tests.fixtures.common_fixtures import *
-from tcp_tests.fixtures.config_fixtures import *
-from tcp_tests.fixtures.underlay_fixtures import *
-from tcp_tests.fixtures.rally_fixtures import *
-from tcp_tests.fixtures.salt_fixtures import *
-from tcp_tests.fixtures.common_services_fixtures import *
-from tcp_tests.fixtures.openstack_fixtures import *
-from tcp_tests.fixtures.opencontrail_fixtures import *
-from tcp_tests.fixtures.oss_fixtures import *
-from tcp_tests.fixtures.decapod_fixtures import *
-from tcp_tests.fixtures.stacklight_fixtures import *
-from tcp_tests.fixtures.virtlet_fixtures import *
-from tcp_tests.fixtures.virtlet_ceph_fixtures import *
-from tcp_tests.fixtures.k8s_fixtures import *
+from tcp_tests.fixtures.common_fixtures import * # noqa
+from tcp_tests.fixtures.config_fixtures import * # noqa
+from tcp_tests.fixtures.underlay_fixtures import * # noqa
+from tcp_tests.fixtures.rally_fixtures import * # noqa
+from tcp_tests.fixtures.salt_fixtures import * # noqa
+from tcp_tests.fixtures.common_services_fixtures import * # noqa
+from tcp_tests.fixtures.openstack_fixtures import * # noqa
+from tcp_tests.fixtures.opencontrail_fixtures import * # noqa
+from tcp_tests.fixtures.oss_fixtures import * # noqa
+from tcp_tests.fixtures.decapod_fixtures import * # noqa
+from tcp_tests.fixtures.stacklight_fixtures import * # noqa
+from tcp_tests.fixtures.virtlet_fixtures import * # noqa
+from tcp_tests.fixtures.virtlet_ceph_fixtures import * # noqa
+from tcp_tests.fixtures.k8s_fixtures import * # noqa
__all__ = sorted([ # sort for documentation
diff --git a/tcp_tests/tests/system/test_install_cookied_ocata.py b/tcp_tests/tests/system/test_install_cookied_ocata.py
index c3ac83f..125168d 100644
--- a/tcp_tests/tests/system/test_install_cookied_ocata.py
+++ b/tcp_tests/tests/system/test_install_cookied_ocata.py
@@ -11,7 +11,7 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-import os
+
import pytest
from tcp_tests import logger
diff --git a/tcp_tests/tests/system/test_install_mcp11_ovs_newton.py b/tcp_tests/tests/system/test_install_mcp11_ovs_newton.py
index 51a2826..b777931 100644
--- a/tcp_tests/tests/system/test_install_mcp11_ovs_newton.py
+++ b/tcp_tests/tests/system/test_install_mcp11_ovs_newton.py
@@ -11,13 +11,10 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-import copy
-import time
import pytest
from tcp_tests import settings
-from tcp_tests.helpers import ext
from tcp_tests import logger
LOG = logger.logger
diff --git a/tcp_tests/tests/system/test_install_mcp11_ovs_ocata.py b/tcp_tests/tests/system/test_install_mcp11_ovs_ocata.py
index 3dbd5e5..d99ffb5 100644
--- a/tcp_tests/tests/system/test_install_mcp11_ovs_ocata.py
+++ b/tcp_tests/tests/system/test_install_mcp11_ovs_ocata.py
@@ -11,7 +11,7 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-import os
+
import pytest
from tcp_tests import logger
diff --git a/tcp_tests/tests/system/test_install_virtlet.py b/tcp_tests/tests/system/test_install_virtlet.py
index 0341f11..817919c 100644
--- a/tcp_tests/tests/system/test_install_virtlet.py
+++ b/tcp_tests/tests/system/test_install_virtlet.py
@@ -11,13 +11,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-import copy
-import time
import pytest
-from tcp_tests import settings
-from tcp_tests.helpers import ext
from tcp_tests import logger
LOG = logger.logger
diff --git a/tcp_tests/tests/system/test_mcp10_ovs_vxlan_install.py b/tcp_tests/tests/system/test_mcp10_ovs_vxlan_install.py
index 2c49259..570af89 100644
--- a/tcp_tests/tests/system/test_mcp10_ovs_vxlan_install.py
+++ b/tcp_tests/tests/system/test_mcp10_ovs_vxlan_install.py
@@ -11,13 +11,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-import copy
-import time
import pytest
-from tcp_tests import settings
-from tcp_tests.helpers import ext
from tcp_tests import logger
LOG = logger.logger
diff --git a/tcp_tests/tests/system/test_opencontrail.py b/tcp_tests/tests/system/test_opencontrail.py
index 3781f7d..e21d978 100644
--- a/tcp_tests/tests/system/test_opencontrail.py
+++ b/tcp_tests/tests/system/test_opencontrail.py
@@ -11,13 +11,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-import copy
-import time
import pytest
-from tcp_tests import settings
-from tcp_tests.helpers import ext
from tcp_tests import logger
LOG = logger.logger
diff --git a/tcp_tests/tests/system/test_tcp_install.py b/tcp_tests/tests/system/test_tcp_install.py
index 80bfc71..4e8b774 100644
--- a/tcp_tests/tests/system/test_tcp_install.py
+++ b/tcp_tests/tests/system/test_tcp_install.py
@@ -11,13 +11,9 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-import copy
-import time
import pytest
-from tcp_tests import settings
-from tcp_tests.helpers import ext
from tcp_tests import logger
LOG = logger.logger
diff --git a/tcp_tests/tests/system/test_virtlet_actions.py b/tcp_tests/tests/system/test_virtlet_actions.py
index cf48ca8..5c8c9ea 100644
--- a/tcp_tests/tests/system/test_virtlet_actions.py
+++ b/tcp_tests/tests/system/test_virtlet_actions.py
@@ -11,13 +11,7 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
-import copy
-import time
-import pytest
-
-from tcp_tests import settings
-from tcp_tests.helpers import ext
from tcp_tests import logger
LOG = logger.logger
diff --git a/tox.ini b/tox.ini
index 2bfc54e..5fb224a 100644
--- a/tox.ini
+++ b/tox.ini
@@ -31,7 +31,7 @@
flake8 {posargs:.}
[flake8]
-ignore = F401,F403,F821,H302,H802,W293,W391,W292
+ignore = H302,H802,W293,W391,W292
exclude = .venv,.git,.tox,dist,doc,*egg,build,local,./lib
show-pep8 = True
show-source = True