Mostly updates to Traceback rendering, to add support for features introduced in Python3.11
We also have a new env var that I am proposing to become a standard. TTY_COMPATIBLE=1
tells Rich to write ansi-escape sequences even if it detects it is not writing to a terminal. This is intended for use with GitHub Actions / CI, which can interpret escape sequences, but aren't a terminal.
There is also a change to how NO_COLOR and FORCE_COLOR are interpreted, which is the reason for the major version bump.
[14.0.0] - 2025-03-30
Added
- Added env var
TTY_COMPATIBLE
to override auto-detection of TTY support (See console.rst for details). #3675
Changed
- An empty
NO_COLOR
env var is now considered disabled. #3675 - An empty
FORCE_COLOR
env var is now considered disabled. #3675 - Rich tracebacks will now render notes on Python 3.11 onwards (added with
Exception.add_note
) #3676 - Indentation in exceptions won't be underlined #3678
- Rich tracebacks will now render Exception Groups #3677