Skip to content

Suppress the progress bar with --quiet and --log#13467

Merged
ichard26 merged 1 commit intopypa:mainfrom
ichard26:bug/progress-bar-suppression
Jul 11, 2025
Merged

Suppress the progress bar with --quiet and --log#13467
ichard26 merged 1 commit intopypa:mainfrom
ichard26:bug/progress-bar-suppression

Conversation

@ichard26
Copy link
Copy Markdown
Member

@ichard26 ichard26 commented Jul 7, 2025

If users still want the progress bar, then --progress-bar on will do the trick. To make this work, a new "auto" mode has been added. It's equivalent to "on" when running at default or higher verbosity, "off" otherwise.

Closes #11024.
Closes #10930.
Fixes #10915.

If users still want the progress bar, then --progress-bar on will do the
trick. To make this work, a new "auto" mode has been added. It's
equivalent to "on" when running at default or higher verbosity, "off"
otherwise.

Co-authored-by: q0w <[email protected]>
@ichard26 ichard26 force-pushed the bug/progress-bar-suppression branch from e25b446 to 99ca8b3 Compare July 7, 2025 22:42
if options.debug_mode:
self.verbosity = 2

if hasattr(options, "progress_bar") and options.progress_bar == "auto":
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does a hasattr check really need to be done here or is this to guard against some type hinter / IDE warning? I don't have a good grasp on the options object, so this is a genuine question.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not every command accepts --progress-bar so the attribute is not guaranteed to exist unfortunately.

@ichard26 ichard26 merged commit 60a1a66 into pypa:main Jul 11, 2025
52 of 81 checks passed
@ichard26 ichard26 deleted the bug/progress-bar-suppression branch July 11, 2025 14:27
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 27, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--quiet suppression of progress bar not honored when specifying custom log location with --log /path/to/log.log

2 participants