Skip to content

Chongus tracebacks when failed test #17

@lexi-k

Description

@lexi-k

Hello, when ruff check fails it also prints out giant tracebacks from pytest (sometimes even ~2.3k lines) just to inform me that I forgot to sort imports, or whatever. I found that there is --tb=short or --tb=line switch for pytest to reduce the clutter, but I would like to see stack traces within other tests if possible. This is an example screenshot of one RuffError (I can't even tell what the error is since it just says pytest_ruff.RuffError) in one file with --tb=short flag.

Would it be please possible to not include the tracebacks without the need to shorten all other tracebacks with the --tb=... flag)?

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions