mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-07-29 11:55:04 +00:00
Re-sort imports.
This commit is contained in:
@@ -19,7 +19,6 @@ from ansible_collections.community.docker.plugins.inventory.docker_containers im
|
||||
InventoryModule,
|
||||
)
|
||||
|
||||
|
||||
if t.TYPE_CHECKING:
|
||||
from collections.abc import Callable
|
||||
|
||||
|
||||
@@ -42,7 +42,6 @@ from ansible_collections.community.docker.tests.unit.plugins.module_utils._api.c
|
||||
|
||||
from .. import fake_api
|
||||
|
||||
|
||||
if t.TYPE_CHECKING:
|
||||
from ansible_collections.community.docker.plugins.module_utils._api.auth import (
|
||||
AuthConfig,
|
||||
|
||||
@@ -8,5 +8,4 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
DEFAULT_DOCKER_API_VERSION = "1.45"
|
||||
|
||||
@@ -17,7 +17,6 @@ from ansible_collections.community.docker.tests.unit.plugins.module_utils._api.c
|
||||
|
||||
from . import fake_stat
|
||||
|
||||
|
||||
if t.TYPE_CHECKING:
|
||||
from collections.abc import Callable
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
||||
OBJ = {
|
||||
"read": "2015-02-11T19:20:46.667237763+02:00",
|
||||
"network": {
|
||||
|
||||
@@ -17,7 +17,6 @@ from ansible_collections.community.docker.plugins.module_utils._api.transport im
|
||||
ssladapter,
|
||||
)
|
||||
|
||||
|
||||
try:
|
||||
from ssl import CertificateError, match_hostname # type: ignore
|
||||
except ImportError:
|
||||
|
||||
@@ -27,7 +27,6 @@ from ansible_collections.community.docker.plugins.module_utils._api.utils.build
|
||||
tar,
|
||||
)
|
||||
|
||||
|
||||
if t.TYPE_CHECKING:
|
||||
from collections.abc import Collection
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@ from ansible_collections.community.docker.plugins.module_utils._api.utils.json_s
|
||||
stream_as_text,
|
||||
)
|
||||
|
||||
|
||||
if t.TYPE_CHECKING:
|
||||
T = t.TypeVar("T")
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ from ansible_collections.community.docker.plugins.module_utils._api.utils.proxy
|
||||
ProxyConfig,
|
||||
)
|
||||
|
||||
|
||||
HTTP = "http://test:80"
|
||||
HTTPS = "https://test:443"
|
||||
FTP = "ftp://user:password@host:23"
|
||||
|
||||
@@ -44,7 +44,6 @@ from ansible_collections.community.docker.tests.unit.plugins.module_utils._api.c
|
||||
DEFAULT_DOCKER_API_VERSION,
|
||||
)
|
||||
|
||||
|
||||
TEST_CERT_DIR = os.path.join(
|
||||
os.path.dirname(__file__),
|
||||
"testdata/certs",
|
||||
|
||||
@@ -10,7 +10,6 @@ from ansible_collections.community.docker.plugins.module_utils._compose_v2 impor
|
||||
Event,
|
||||
)
|
||||
|
||||
|
||||
EVENT_TEST_CASES: list[tuple[str, str, bool, bool, str, list[Event], list[str]]] = [
|
||||
# #######################################################################################################################
|
||||
# ## Docker Compose 2.18.1 ##############################################################################################
|
||||
|
||||
@@ -14,7 +14,6 @@ from ansible_collections.community.docker.plugins.module_utils._compose_v2 impor
|
||||
|
||||
from .compose_v2_test_cases import EVENT_TEST_CASES
|
||||
|
||||
|
||||
EXTRA_TEST_CASES: list[tuple[str, str, bool, bool, str, list[Event], list[str]]] = [
|
||||
(
|
||||
"2.24.2-manual-build-dry-run",
|
||||
|
||||
@@ -12,7 +12,6 @@ from ansible_collections.community.docker.plugins.module_utils._copy import (
|
||||
_stream_generator_to_fileobj,
|
||||
)
|
||||
|
||||
|
||||
if t.TYPE_CHECKING:
|
||||
from collections.abc import Sequence
|
||||
|
||||
|
||||
@@ -13,7 +13,6 @@ from ansible_collections.community.docker.plugins.module_utils._logfmt import (
|
||||
parse_line,
|
||||
)
|
||||
|
||||
|
||||
SUCCESS_TEST_CASES: list[tuple[str, dict[str, t.Any], dict[str, t.Any]]] = [
|
||||
(
|
||||
'time="2024-02-02T08:14:10+01:00" level=warning msg="a network with name influxNetwork exists but was not'
|
||||
|
||||
@@ -15,7 +15,6 @@ from ansible_collections.community.docker.plugins.module_utils._util import (
|
||||
parse_healthcheck,
|
||||
)
|
||||
|
||||
|
||||
if t.TYPE_CHECKING:
|
||||
|
||||
class DAMSpec(t.TypedDict):
|
||||
|
||||
@@ -20,7 +20,6 @@ from ..test_support.docker_image_archive_stubbing import (
|
||||
write_irrelevant_tar,
|
||||
)
|
||||
|
||||
|
||||
if t.TYPE_CHECKING:
|
||||
from collections.abc import Callable
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@ from ansible_collections.community.docker.plugins.modules import (
|
||||
docker_swarm_service,
|
||||
)
|
||||
|
||||
|
||||
APIError = pytest.importorskip("docker.errors.APIError")
|
||||
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@ from ansible_collections.community.docker.plugins.plugin_utils._unsafe import (
|
||||
make_unsafe,
|
||||
)
|
||||
|
||||
|
||||
TEST_MAKE_UNSAFE: list[
|
||||
tuple[t.Any, list[tuple[t.Any, ...]], list[tuple[t.Any, ...]]]
|
||||
] = [
|
||||
|
||||
Reference in New Issue
Block a user