Fix flake8 complaints - F401

F401 'dnf' imported but unused
F401 'imp' imported but unused
F401 'os' imported but unused
F401 'subprocess' imported but unused
F401 'sys' imported but unused
F401 'yum' imported but unused

JIRA: COMPOSE-4108
Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
Haibo Lin 2020-02-06 10:21:54 +08:00
parent 41a629969c
commit 3eddcfccd8
54 changed files with 2 additions and 77 deletions

View File

@ -7,8 +7,6 @@ repos.
"""
import argparse
import os
import sys
from pungi_utils.unified_isos import UnifiedISO

View File

@ -14,7 +14,6 @@
import argparse
import logging
import os
import sys
from pungi_utils import patch_iso

View File

@ -2,7 +2,6 @@
import difflib
import errno
import imp
import os
import shutil
import tempfile

View File

@ -3,9 +3,6 @@
import mock
import unittest
import os
import sys
from pungi.arch import (
get_compatible_arches,
get_valid_arches,

View File

@ -5,7 +5,6 @@ import mock
import six
import os
import sys
from pungi.phases.buildinstall import (
BuildinstallPhase,

View File

@ -7,7 +7,6 @@ try:
except ImportError:
import unittest
import os
import sys
from six import StringIO
import kobo.conf

View File

@ -9,7 +9,6 @@ except ImportError:
import unittest
import os
import six
import sys
import tempfile
import shutil

View File

@ -7,7 +7,6 @@ except ImportError:
import tempfile
import os
import sys
from pungi.wrappers.comps import CompsWrapper, CompsFilter, CompsValidationError
from tests.helpers import BaseTestCase, FIXTURE_DIR

View File

@ -6,9 +6,7 @@ try:
except ImportError:
import unittest
import os
import six
import sys
import mock
from pungi import checks

View File

@ -5,8 +5,6 @@ try:
except ImportError:
import unittest
import argparse
import os
import sys
from parameterized import parameterized

View File

@ -3,8 +3,6 @@
import mock
import os
import subprocess
import sys
import six
from pungi.scripts.config_validate import cli_main

View File

@ -5,7 +5,6 @@ import mock
import six
import os
import sys
from tests import helpers
from pungi.createiso import CreateIsoOpts

View File

@ -3,7 +3,6 @@
import mock
import os
import sys
from six.moves import StringIO
from tests import helpers

View File

@ -7,9 +7,6 @@ except ImportError:
import six
import os
import sys
from pungi.wrappers.createrepo import CreaterepoWrapper

View File

@ -10,7 +10,6 @@ import mock
import glob
import os
import six
import sys
from pungi.phases.createrepo import (
CreaterepoPhase,

View File

@ -2,7 +2,6 @@
import mock
import os
import sys
from productmd.extra_files import ExtraFiles

View File

@ -5,7 +5,6 @@ import mock
import six
import os
import sys
from tests import helpers
from pungi.phases import extra_isos

View File

@ -10,7 +10,6 @@ from textwrap import dedent
import six
import os
import sys
from pungi.wrappers import fus

View File

@ -1,8 +1,6 @@
# -*- coding: utf-8 -*-
import mock
import os
import sys
from pungi.phases.gather.methods import method_deps as deps
from tests import helpers

View File

@ -4,7 +4,6 @@ from collections import namedtuple
import copy
import mock
import os
import sys
import six

View File

@ -2,7 +2,6 @@
import mock
import os
import sys
import six

View File

@ -3,7 +3,6 @@
import copy
import mock
import os
import sys
try:
import unittest2 as unittest

View File

@ -7,8 +7,6 @@ except ImportError:
import mock
import six
import os
import sys
from pungi.phases.gather.sources.source_module import GatherSourceModule
from tests import helpers

View File

@ -5,9 +5,6 @@ try:
except ImportError:
import unittest
import os
import sys
from pungi.graph import SimpleAcyclicOrientedGraph

View File

@ -5,7 +5,6 @@ import mock
import six
import os
import sys
from pungi.phases.image_build import ImageBuildPhase, CreateImageBuildThread
from tests.helpers import DummyCompose, PungiTestCase, boom

View File

@ -7,7 +7,6 @@ except ImportError:
import mock
import os
import sys
import tempfile
import shutil

View File

@ -10,7 +10,6 @@ import mock
import six
import os
import sys
from pungi.module_util import Modulemd
from pungi.phases import init

View File

@ -10,7 +10,6 @@ except ImportError:
import tempfile
import os
import sys
import six

View File

@ -5,7 +5,6 @@ import mock
import errno
import os
import stat
import sys
from pungi import linker
from tests import helpers

View File

@ -3,9 +3,6 @@
import mock
import os
import sys
import six
from pungi.phases.live_images import LiveImagesPhase, CreateLiveImageThread

View File

@ -2,7 +2,6 @@
import mock
import sys
import os
import six

View File

@ -5,9 +5,6 @@ try:
except ImportError:
import unittest
import os
import sys
import six
from pungi.wrappers.lorax import LoraxWrapper

View File

@ -4,8 +4,6 @@ try:
import unittest2 as unittest
except ImportError:
import unittest
import os
import sys
import mock
from pungi import media_split

View File

@ -1,6 +1,5 @@
import mock
import os
import sys
import six

View File

@ -3,8 +3,6 @@
from datetime import datetime
import json
import mock
import os
import sys
try:
import unittest2 as unittest

View File

@ -7,7 +7,6 @@ import operator
import os
import shutil
import subprocess
import sys
from textwrap import dedent
import mock

View File

@ -5,7 +5,6 @@ import json
import copy
import os
import sys
from tests import helpers
from pungi import checks

View File

@ -3,7 +3,6 @@
import mock
import os
import sys
from kobo.shortcuts import force_list

View File

@ -5,7 +5,6 @@ import json
import mock
import os
import sys
from tests import helpers
from pungi.phases import ostree

View File

@ -3,7 +3,6 @@
import json
import os
import sys
import mock
import six

View File

@ -3,7 +3,6 @@
import mock
import os
import sys
from tests import helpers
from pungi.ostree import utils

View File

@ -2,7 +2,6 @@
import mock
import os
import sys
try:
import unittest2 as unittest

View File

@ -2,8 +2,6 @@
import unittest
import os
import sys
from pungi.pathmatch import PathMatch, head_tail_split

View File

@ -6,9 +6,7 @@ try:
import unittest2 as unittest
except ImportError:
import unittest
import os
import random
import sys
import time
from pungi.phases import weaver

View File

@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
import os
import sys
import mock
import six

View File

@ -3,7 +3,6 @@
import mock
import os
import six
import sys
try:
import unittest2 as unittest

View File

@ -5,7 +5,6 @@ import mock
import os
import re
import six
import sys
try:
import unittest2 as unittest

View File

@ -1,7 +1,6 @@
# -*- coding: utf-8 -*-
import os
import sys
import six
from pungi.wrappers import repoclosure as rc

View File

@ -2,7 +2,6 @@
import mock
import os
import sys
from pungi.runroot import Runroot
from tests import helpers

View File

@ -10,7 +10,6 @@ import shutil
import tempfile
import os
import sys
import six
from pungi.wrappers import scm

View File

@ -9,20 +9,19 @@ except ImportError:
import mock
import os
import six
import sys
import pungi.phases.test as test_phase
from tests.helpers import DummyCompose, PungiTestCase, touch, mk_boom
try:
import dnf
import dnf # noqa: F401
HAS_DNF = True
except ImportError:
HAS_DNF = False
try:
import yum
import yum # noqa: F401
HAS_YUM = True
except ImportError:

View File

@ -3,7 +3,6 @@
import mock
import os
import shutil
import sys
import six
from six.moves.configparser import SafeConfigParser

View File

@ -3,7 +3,6 @@
import argparse
import mock
import os
import sys
try:
import unittest2 as unittest

View File

@ -4,8 +4,6 @@ try:
import unittest2 as unittest
except ImportError:
import unittest
import os
import sys
from six.moves import cStringIO
from pungi.wrappers.variants import VariantsXmlParser