Repository navigation
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #112 +/- ##
==========================================
- Coverage 94.31% 94.26% -0.06%
==========================================
Files 13 13
Lines 845 854 +9
==========================================
+ Hits 797 805 +8
- Misses 48 49 +1
🚀 New features to boost your workflow:
|
This branch has not been deployed
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: With
config.rich = None(the default), the shared logger now uses rich only when stderr is a terminal or a Jupyter kernel. In CI logs, log files and pipes it falls back to the plain handler, which writes one line per record.Outside a terminal, rich sets the console width to 80 columns. Its log layout is a table that expands to the full console width, so long messages wrap onto several lines and every line is padded with trailing spaces. Setting
soft_wrap=Trueon the console doesn't change the layout, because the table expands regardless.Changes:
_auto_rich()returns true when rich is installed andConsole(stderr=True).is_terminal or .is_jupyterholds. rich's own terminal check also respectsFORCE_COLORandTTY_COMPATIBLE.config.rich = Truestill forces rich everywhere.nb_output_stderr = "remove"still show rich log lines, because rich sends them as display data in a kernel. Such builds can setconfig.rich = False, orSCVERSE_RICH=0after the env var PR.