Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
sh-rp committed Jan 30, 2024
1 parent a955c89 commit 72417da
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions dlt/cli/pipeline_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,13 +263,13 @@ def _display_pending_packages() -> Tuple[Sequence[str], Sequence[str]]:
fmt.warning("Pipeline does not have a default schema")
else:
fmt.echo("Found schema with name %s" % fmt.bold(p.default_schema_name))
format = command_kwargs.get("format")
remove_defaults = command_kwargs.get("remove_defaults")
format_ = command_kwargs.get("format")
remove_defaults_ = command_kwargs.get("remove_defaults")
s = p.default_schema
if format == "json":
schema_str = json.dumps(s.to_dict(remove_defaults=remove_defaults), pretty=True)
if format_ == "json":
schema_str = json.dumps(s.to_dict(remove_defaults=remove_defaults_), pretty=True)
else:
schema_str = s.to_pretty_yaml(remove_defaults=remove_defaults)
schema_str = s.to_pretty_yaml(remove_defaults=remove_defaults_)
fmt.echo(schema_str)

if operation == "drop":
Expand Down

0 comments on commit 72417da

Please sign in to comment.