Skip to content

Commit 713d680

Browse files
author
Yasen Trahnov
committed
flake8
1 parent 6b84929 commit 713d680

File tree

5 files changed

+5
-20
lines changed

5 files changed

+5
-20
lines changed

pulp-glue-console/pulp_glue/console/context.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from gettext import gettext as _
2-
from typing import Any, ClassVar, Dict, Optional
32

43
from pulp_glue.common.context import (
54
EntityDefinition,

pulpcore/cli/console/distribution.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
from typing import Optional, Union, cast
1+
from typing import Optional, Union
22

33
import click
4-
from pulp_glue.common.context import EntityDefinition, PluginRequirement, PulpEntityContext
4+
from pulp_glue.common.context import EntityDefinition, PulpEntityContext
55
from pulp_glue.common.i18n import get_translation
66
from pulp_glue.console.context import (
77
PulpConsoleDistributionContext as BaseConsoleDistributionContext,

pulpcore/cli/console/remote.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
import json
2-
from typing import Any
3-
41
import click
52
from pulp_glue.common.i18n import get_translation
63
from pulp_glue.console.context import PulpConsoleRemoteContext

pulpcore/cli/console/repository.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
1-
from typing import IO, Any, Dict, Optional
1+
from typing import Optional
22

33
import click
44
from pulp_glue.common.context import (
5-
EntityFieldDefinition,
6-
PluginRequirement,
75
PulpEntityContext,
86
PulpRemoteContext,
97
PulpRepositoryContext,
108
)
119
from pulp_glue.common.i18n import get_translation
1210
from pulp_glue.console.context import (
13-
PulpConsoleContentContext,
1411
PulpConsoleRemoteContext,
1512
PulpConsoleRepositoryContext,
1613
)
17-
from pulp_glue.core.context import PulpArtifactContext
1814
from pulpcore.cli.common.generic import (
19-
GroupOption,
2015
PulpCLIContext,
21-
chunk_size_option,
2216
create_command,
2317
destroy_command,
2418
href_option,
@@ -28,8 +22,6 @@
2822
name_option,
2923
pass_pulp_context,
3024
pass_repository_context,
31-
pulp_option,
32-
repository_content_command,
3325
repository_href_option,
3426
repository_lookup_option,
3527
resource_option,

tests/conftest.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
import os
2-
import typing as t
3-
from urllib.parse import urljoin
4-
51
import pytest
62

73
pytest_plugins = "pytest_pulp_cli"
84

95

106
@pytest.fixture
117
def pulp_cli_vars(pulp_cli_vars: t.MutableMapping[str, str]) -> t.MutableMapping[str, str]:
12-
PULP_FIXTURES_URL = pulp_cli_vars["PULP_FIXTURES_URL"]
8+
# If PULP_FIXTURES_URL is needed in the future, uncomment this assignment
9+
# PULP_FIXTURES_URL = os.environ.get("PULP_FIXTURES_URL", "https://fixtures.pulpproject.org/")
1310
result: t.MutableMapping[str, str] = {}
1411
result.update(pulp_cli_vars)
1512

0 commit comments

Comments
 (0)