Skip to content

Commit 9ad9c74

Browse files
committed
Fix lint warnings
1 parent 8a33eca commit 9ad9c74

2 files changed

Lines changed: 3 additions & 8 deletions

File tree

pulp-glue-workflow/src/pulp_glue/workflow/context.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
from pulp_glue.common.context import (
44
EntityDefinition,
5-
PulpEntityContext,
65
PluginRequirement,
6+
PulpEntityContext,
77
)
88
from pulp_glue.common.i18n import get_translation
99

@@ -28,8 +28,6 @@ def cancel(self) -> t.Any:
2828
body={"state": "canceled"},
2929
)
3030

31-
def preprocess_entity(
32-
self, body: EntityDefinition, partial: bool = False
33-
) -> EntityDefinition:
31+
def preprocess_entity(self, body: EntityDefinition, partial: bool = False) -> EntityDefinition:
3432
body = super().preprocess_entity(body, partial=partial)
3533
return body

src/pulpcore/cli/workflow/workflow.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
pass_entity_context,
1111
pass_pulp_context,
1212
pulp_command,
13-
pulp_option,
1413
)
1514

1615
from pulp_glue.common.context import DATETIME_FORMATS
@@ -71,9 +70,7 @@ def create(
7170
try:
7271
parsed_tasks.append(json.loads(task_json))
7372
except json.JSONDecodeError as e:
74-
raise click.ClickException(
75-
_("Invalid JSON for --task: {err}").format(err=str(e))
76-
)
73+
raise click.ClickException(_("Invalid JSON for --task: {err}").format(err=str(e)))
7774
body["tasks"] = parsed_tasks
7875

7976
if pulp_labels:

0 commit comments

Comments
 (0)