Using the pycodestyle API
Hi, I'm trying to use pycodestyle from a custom script. Importing the "Checker" class and passing some lines to check works, but how can I specify which errors to select or ignore? The API docs [1] are a bit lacking. Thank you and best regards, Sven ______________ [1] https://github.com/PyCQA/pycodestyle/blob/master/docs/api.rst#checker-classe...
On Mon, Dec 26, 2016 at 8:05 AM, Sven Brauch <mail@svenbrauch.de> wrote:
Hi,
I'm trying to use pycodestyle from a custom script. Importing the "Checker" class and passing some lines to check works, but how can I specify which errors to select or ignore? The API docs [1] are a bit lacking.
Hey Sven, The Checker class isn't really best suited to this use-case. You really want to be using the StyleGuide object. Also you probably want to look at the rendered documentation [0] Cheers, Ian [0]: http://pycodestyle.pycqa.org/en/latest/api.html
participants (2)
-
Ian Cordasco -
Sven Brauch