Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pylint: read from stdin?

Is there a way to instruct pylint to read the input from stdin?

Synopsis string suggests that the file argument is not mandatory:

pylint [ OPTIONS ] [ <arguments> ]

But when invoked without a non-option argument, it prints

Usage: pylint [options] module_or_package

And the documentation does not mention stdin anywhere.

This looks non-command-line-stylish...

like image 673
Konstantin Shemyak Avatar asked Dec 15 '25 07:12

Konstantin Shemyak


1 Answers

As of Pylint 2.4 you can supply an extra --from-stdin argument to Pylint.

like image 68
Petski Avatar answered Dec 16 '25 20:12

Petski



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!