"colorized" ignored when called without shell?d #9445
Labels
Documentation 📗
Needs triage 📥
Just created, needs acknowledgment, triage, and proper labelling
Question
Bug description
Not sure if tis is a bug. So I ask first. I can run pylint on my shell with
--output-format=colorized
and get the expected nice and fancy output. But when doing this in Python code viasubprocess.run()
there is no color and also no colorcodes in the output string.Might it be that the colorized option is ignored by pylint because it can not detected a color supporting terminal?
I tried to do
shell=True
insubprocess.run()
but then pylint do not find any files to lint. This is another problem. But of course havingshell=True
is not recommended.Configuration
Not a config file but a unitest
Command used
Pylint output
Expected behavior
Nice colors on my terminal.
Pylint version
OS / Environment
Debian GNU Linux 12
Additional dependencies
No response
The text was updated successfully, but these errors were encountered: