Can Pylint be configured to color Fixme warnings differently?

104 Views Asked by At

I would like my fixme messages to be blue, instead of purple, to differentiate them from other purple messages.

Does Pylint even have colorization options? I can't find any.

I see these things called "formatters", but that sounds more complex than what I need.

(I'd probably write a postprocessing script that changes the ANSI codes on the fly before I'd bother with a formatter, because the latter is more likely for personal reuse. I'd rather avoid anything and just slip a nice option into .plintrc)

example of fixme messages colorized in purple

I tried looking through the documentation, google search, and ChatGPT, but didn't seem to find a suitable option.

1

There are 1 best solutions below

3
Pierre.Sassoulas On

Pylint has a colored text reporter that you could base your own reporter on. The way to use it is the following; see output options: pylint --output-format=json:somefile.json,colorized.

You will need to register your custom reporter to be able to use it