diff --git a/scripts/ci/migration_cli_benchmark.py b/scripts/ci/migration_cli_benchmark.py index 0295de92..44ea2b88 100644 --- a/scripts/ci/migration_cli_benchmark.py +++ b/scripts/ci/migration_cli_benchmark.py @@ -543,6 +543,9 @@ def main() -> int: "NO_COLOR": "1", "TERM": "dumb", "PYTHONUNBUFFERED": "1", + # Prevent Rich from truncating long package names in table output. + # Matches the COLUMNS=10000 convention used in parity_completion_test.go. + "COLUMNS": "10000", } ) diff --git a/src/apm_cli/commands/deps/cli.py b/src/apm_cli/commands/deps/cli.py index cbdd2b7b..14b18a17 100644 --- a/src/apm_cli/commands/deps/cli.py +++ b/src/apm_cli/commands/deps/cli.py @@ -405,7 +405,7 @@ def list_packages(global_, show_all, insecure_only): from rich.console import Console term_width = shutil.get_terminal_size((120, 24)).columns - console = Console(width=max(120, term_width)) + console = Console(width=max(120, term_width), height=24) has_rich = True except ImportError: has_rich = False