Skip to content

Commit

Permalink
fix: align poly diff columns (#33)
Browse files Browse the repository at this point in the history
* fix: poly diff, align projects and brick status a little bit better

* bump poetry plugin to 1.0.4
  • Loading branch information
DavidVujic authored Nov 16, 2022
1 parent 6f931f6 commit 5b5c318
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions components/polylith/diff/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,16 @@ def print_diff_details(
table = Table(box=box.SIMPLE_HEAD)
table.add_column("[data]changed brick[/]")

for project in projects_data:
project_name = project["name"]
table.add_column(f"[proj]{project_name}[/]")
proj_cols = [f"[proj]{project['name']}[/]" for project in projects_data]
table.add_column(Columns(proj_cols, align="center", expand=True))

for brick in sorted(components):
cols = [brick_status(brick, p.get("components")) for p in projects_data]
table.add_row(f"[comp]{brick}[/]", Columns(cols))
table.add_row(f"[comp]{brick}[/]", Columns(cols, align="center", expand=True))

for brick in sorted(bases):
cols = [brick_status(brick, p.get("bases")) for p in projects_data]
table.add_row(f"[base]{brick}[/]", Columns(cols))
table.add_row(f"[base]{brick}[/]", Columns(cols, align="center", expand=True))

console.print(table, overflow="ellipsis")

Expand Down
2 changes: 1 addition & 1 deletion projects/poetry_polylith_plugin/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "poetry-polylith-plugin"
version = "1.0.3"
version = "1.0.4"
description = "A Poetry plugin that adds tooling support for the Polylith Architecture"
authors = ["David Vujic"]
homepage = "https://github.com/davidvujic/python-polylith"
Expand Down

0 comments on commit 5b5c318

Please sign in to comment.