summaryrefslogtreecommitdiffstats
path: root/awxkit
diff options
context:
space:
mode:
authorAlan Rominger <arominge@redhat.com>2021-06-11 19:41:01 +0200
committerAlan Rominger <arominge@redhat.com>2021-06-29 17:32:59 +0200
commitf0cd6b2457a9e4d3d06ccca009e0e5dafea57d31 (patch)
tree0b0fcef7684c4846d299d246019eac8fd3dd259b /awxkit
parentMerge pull request #10538 from AlanCoding/collection_pep (diff)
downloadawx-f0cd6b2457a9e4d3d06ccca009e0e5dafea57d31.tar.xz
awx-f0cd6b2457a9e4d3d06ccca009e0e5dafea57d31.zip
Run flake8 on awxkit
Diffstat (limited to 'awxkit')
-rw-r--r--awxkit/awxkit/api/pages/inventory.py3
-rw-r--r--awxkit/awxkit/awx/utils.py2
-rw-r--r--awxkit/awxkit/utils/__init__.py1
-rw-r--r--awxkit/test/cli/test_client.py2
-rw-r--r--awxkit/test/cli/test_format.py2
-rw-r--r--awxkit/test/cli/test_options.py4
-rw-r--r--awxkit/test/test_credentials.py1
-rw-r--r--awxkit/test/test_dependency_resolver.py6
8 files changed, 3 insertions, 18 deletions
diff --git a/awxkit/awxkit/api/pages/inventory.py b/awxkit/awxkit/api/pages/inventory.py
index 42b1a5dd26..b904b6ab09 100644
--- a/awxkit/awxkit/api/pages/inventory.py
+++ b/awxkit/awxkit/api/pages/inventory.py
@@ -1,10 +1,9 @@
from contextlib import suppress
import logging
import json
-import re
from awxkit.api.pages import Credential, Organization, Project, UnifiedJob, UnifiedJobTemplate
-from awxkit.utils import filter_by_class, random_title, update_payload, not_provided, PseudoNamespace, poll_until, random_utf8
+from awxkit.utils import filter_by_class, random_title, update_payload, not_provided, PseudoNamespace, poll_until
from awxkit.api.mixins import DSAdapter, HasCreate, HasInstanceGroups, HasNotifications, HasVariables, HasCopy
from awxkit.api.resources import resources
import awxkit.exceptions as exc
diff --git a/awxkit/awxkit/awx/utils.py b/awxkit/awxkit/awx/utils.py
index 66de4517dc..6fc3a18480 100644
--- a/awxkit/awxkit/awx/utils.py
+++ b/awxkit/awxkit/awx/utils.py
@@ -1,6 +1,6 @@
from contextlib import contextmanager, suppress
-from awxkit import api, utils, exceptions
+from awxkit import api, exceptions
from awxkit.config import config
diff --git a/awxkit/awxkit/utils/__init__.py b/awxkit/awxkit/utils/__init__.py
index 50cbf1cb48..3b7ee3399c 100644
--- a/awxkit/awxkit/utils/__init__.py
+++ b/awxkit/awxkit/utils/__init__.py
@@ -1,4 +1,3 @@
-from contextlib import contextmanager
from datetime import datetime, timedelta, tzinfo
import inspect
import logging
diff --git a/awxkit/test/cli/test_client.py b/awxkit/test/cli/test_client.py
index 9a63e37c55..a6ebae0cb7 100644
--- a/awxkit/test/cli/test_client.py
+++ b/awxkit/test/cli/test_client.py
@@ -1,5 +1,3 @@
-from io import StringIO
-
import pytest
from requests.exceptions import ConnectionError
diff --git a/awxkit/test/cli/test_format.py b/awxkit/test/cli/test_format.py
index adbe0ef463..90da4f434f 100644
--- a/awxkit/test/cli/test_format.py
+++ b/awxkit/test/cli/test_format.py
@@ -4,7 +4,7 @@ import json
import yaml
from awxkit.api.pages import Page
-from awxkit.api.pages.users import Users, User
+from awxkit.api.pages.users import Users
from awxkit.cli import CLI
from awxkit.cli.format import format_response
from awxkit.cli.resource import Import
diff --git a/awxkit/test/cli/test_options.py b/awxkit/test/cli/test_options.py
index fc2e53f957..2950b8b88d 100644
--- a/awxkit/test/cli/test_options.py
+++ b/awxkit/test/cli/test_options.py
@@ -1,11 +1,7 @@
import argparse
-import json
import unittest
from io import StringIO
-import pytest
-from requests import Response
-
from awxkit.api.pages import Page
from awxkit.cli.options import ResourceOptionsParser
diff --git a/awxkit/test/test_credentials.py b/awxkit/test/test_credentials.py
index f2eff6a505..265981d1a3 100644
--- a/awxkit/test/test_credentials.py
+++ b/awxkit/test/test_credentials.py
@@ -1,4 +1,3 @@
-from unittest.mock import patch
import pytest
diff --git a/awxkit/test/test_dependency_resolver.py b/awxkit/test/test_dependency_resolver.py
index b713a73adc..83312b8bf9 100644
--- a/awxkit/test/test_dependency_resolver.py
+++ b/awxkit/test/test_dependency_resolver.py
@@ -403,10 +403,7 @@ def test_teardown_dependency_store_cleared():
g = G().create(f=True, e=True)
f = g._dependency_store[F]
e = g._dependency_store[E]
- b = f._dependency_store[B]
- d = e._dependency_store[D]
c = e._dependency_store[C]
- a = c._dependency_store[A]
g.teardown()
@@ -443,10 +440,7 @@ def test_teardown_ds_cleared():
g = G().create(f=True, e=True)
f = g._dependency_store[F]
e = g._dependency_store[E]
- b = f._dependency_store[B]
- d = e._dependency_store[D]
c = e._dependency_store[C]
- a = c._dependency_store[A]
g.teardown()