refactor: Replace PrettyTable with rich for table output#8
Merged
haugoug merged 1 commit intogvsoc:mainfrom Mar 9, 2026
Merged
refactor: Replace PrettyTable with rich for table output#8haugoug merged 1 commit intogvsoc:mainfrom
haugoug merged 1 commit intogvsoc:mainfrom
Conversation
- dump_table() now uses rich.Table instead of PrettyTable - table_dump_row() updated to use rich's style= parameter for failures instead of manual ANSI codes in cell values - Removed prettytable from requirements.txt (one less dependency) - bcolors kept for backward compat in test start/end banners - Test name and config columns use no_wrap=True to prevent truncation 122 tests passing. Real-world testsuite (12/12) verified.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Drops the
prettytabledependency — table output now usesrich.Tablewhich was already a dependency (used for summary, test listing, etc.).Changes
runner.py:dump_table()usesrich.Tablewith styled headers andno_wrap=Trueon test/config columns to prevent truncationreporting.py:table_dump_row()uses rich'sstyle="red"parameter for failed rows instead of embedding ANSI escape codes in cell valuesrequirements.txt: RemovedprettytableWhy
122 tests passing. Real-world testsuite (12/12) verified.