When running Pylint from the CLI, I can get the exit code with echo $?
However, I am running Pylint from Python using the epylint module (as described in the documentation). Unfortunately, the docs do not describe how to get the exit code when running from Python. Is there a way to do this?
For reference, this is how I'm currently running the linter:
from pylint import epylint as lint
pylint_options = 'foo -E'
(pylint_stdout, pylint_stderr) = lint.py_run(pylint_options, return_std=True)
print('StdOut:')
print(pylint_stdout.getvalue())
print('StdErr:')
print(pylint_stderr.getvalue())