Skip to content

Commit

Permalink
fix: ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
suryaiyer95 committed Jan 30, 2024
1 parent e4dac35 commit bbc3eaa
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
11 changes: 6 additions & 5 deletions src/datapilot/core/platforms/dbt/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,9 @@ def project_health(manifest_path, catalog_path, config_path=None):
click.echo(tabulate_data(report["table"], headers="keys"))
click.echo("\n")

project_report = generate_project_insights_table(package_insights)
click.echo("--" * 50)
click.echo("Project Insights")
click.echo("--" * 50)
click.echo(tabulate_data(project_report, headers="keys"))
if len(package_insights) > 0:
project_report = generate_project_insights_table(package_insights)
click.echo("--" * 50)
click.echo("Project Insights")
click.echo("--" * 50)
click.echo(tabulate_data(project_report, headers="keys"))
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def _get_source(self, source: SourceNode) -> AltimateManifestSourceNode:
def _get_exposure(self, exposure: ExposureNode) -> AltimateManifestExposureNode:
return AltimateManifestExposureNode(
name=exposure.name,
resource_type=exposure.resource_type,
resource_type=AltimateResourceType(exposure.resource_type.value),
package_name=exposure.package_name,
path=exposure.path,
original_file_path=exposure.original_file_path,
Expand Down
1 change: 1 addition & 0 deletions tests/data/manifests/manifest_js.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions tests/data/manifests/manifest_js2.json

Large diffs are not rendered by default.

0 comments on commit bbc3eaa

Please sign in to comment.