pi.
pi.

Reputation: 21542

Use PyCharm inspection from command line script

I want to incorporate PyCharm CE's code-inspection functionality into my continuous-integration server setup.

For that purpose I would need to call the IDE from the command-line, let it load the project, analyse and have it dump the warnings to stdout or to a file. I imagine something similar to how pylint already works.

Is something like this possible, and if so, how?

Upvotes: 1

Views: 328

Answers (1)

pi.
pi.

Reputation: 21542

Apparently there is a script named inspect.sh bundled with IntelliJ (didn't check PyCharm) which can be used from the command line.

Note that there can only be one running instance at a time, so if you want to use this in an automated way, you'll have to run it on another machine.

Relevant documentation can be found here.

Upvotes: 3

Related Questions