[Python] How to display rule numbers in warnings

Discussão em 'Python' iniciado por Stack, Abril 20, 2025.

  1. Stack

    Stack Membro Participativo

    Would it be possible to configure Ruff to display the rule number violated in its warnings?

    In my ruff.toml, I am enabling everything by default:

    [lint]
    select = ["ALL"]


    Then, I plan to remove warnings I judge superficial in my code:

    ignore = ["PLW0603", "INP001"]


    This are a lot of warnings at first, and you would to see the rule number corresponding to the warning violation in the warning message. Is it possible to make Ruff do that?

    Continue reading...

Compartilhe esta Página