← baseline_full_v2

rich_3777

failed NO_PATCH NO_PATCH UNSUBMITTED empty_patch(None) · None tool calls · 0 s · Textualize/rich

Task input

TTY_INTERACTIVE env var

Adds a `TTY_INTERACTIVE` to disable things like progress bar / status spinners in CI

This adds to the new `TTY_COMPATIBLE` which enables styles even when the file is not technically a tty, as is the case in Github Actions. `TTY_INTERACTIVE=0` will remove superfluous animations and progress bars in the CI output.

Tool calls (0)

#ToolArgumentsResult
No trace captured.

Test output

show
........................................................................ [ 72%]
.........................F
=================================== FAILURES ===================================
_____________________________ test_tty_interactive _____________________________

    def test_tty_interactive() -> None:
        """Check TTY_INTERACTIVE environment var."""
    
        # Bytes file, not interactive
        console = Console(file=io.BytesIO())
        assert not console.is_interactive
    
        # Bytes file, force interactive
        console = Console(file=io.BytesIO(), _environ={"TTY_INTERACTIVE": "1"})
>       assert console.is_interactive
E       assert False
E        +  where False = <console width=80 None>.is_interactive

tests/test_console.py:1050: AssertionError
!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!
1 failed, 97 passed in 0.80s