title: Invoking Pylint programmatically
body: <p>I'd like to invoke the Pylint checker, limited to the error signalling part, as part of my unit testing. So I checked the Pylint executable script, got to the <code>pylint.lint.Run</code> helper class and there I got lost in a quite long <code>__init__</code> function, ending with a call to <code>sys.exit()</code>.</p>
  <p>Anybody ever tried and managed to do so?</p>
  <p>The dream-plan would be this:</p>
  <pre><code>if __name__ == '__main__':
    import pylint.lint
    pylint.lint.something(__file__, justerrors=True)
    # now continue with unit testing
  </code></pre>
  <p>Any hints? Other than &quot;copy the <code>__init__</code> method and skip the <code>sys.exit()</code>&quot;, I mean?</p>
  <p>I don't <strong>need</strong> the tests to be run by Pylint, it might as well be <code>pyflakes</code> or other software: feel free to suggest alternatives.</p>