Skip to content

Represent links to bad linecodes as clickable links (like flake8 does) #2811

@57an

Description

@57an

Hi,
we use black in our CI in pre-commit with --check and --diff options

If there are bad from black point of view lines it report them like something like
...
would reformat source\models\customer.py
Oh no! \U0001f4a5 \U0001f494 \U0001f4a5
1 file would be reformatted.
flake8...................................................................Failed
...
I suggest to make source\models\customer.py linkable to have an ability to walk to this file in one click. Flake8 works this way and this is much more convenient.

Additional enhancement if use links instead of raw text is to visually mark bad files if more then one file reported by black (it is hard to find them now in our usage case)

Metadata

Metadata

Assignees

No one assigned

    Labels

    S: needs discussionNeeds further hashing out before ready for implementation (on desirability, feasibility, etc.)T: enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions