Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to configure SublimeLinter to enforce pep8 errors?
    primarykey
    data
    text
    <p>I am trying to get SublimeLinter to enforce pep8 errors as a plugin to sublime text 2. When I install it, it seems to immediately show a small list of errors, but not nearly the full list that I get by running</p> <pre><code>pep8 file.py </code></pre> <p>If I look in my sublime text 2 console, then i see the full list of pep8 errors. However, I want these to be shown in the sublime text 2 gui, when you go to "Show Error List."</p> <p>If I go to "Show Error List," it says I have no lint errors, but I see hundreds of lint errors in the console. </p> <p>In the package configuration file it has pep8 set to true by default, but doesnt seem to be enforcing all of the errors.</p> <p>For someone who has used this plugin, how can I get it to list all of the pep8 errors from the main "Show Error List" window instead of the console?</p> <p>===</p> <p>Update: After a while of poking around, I have narrowed down. In the SublimeLinter plugin (file python.py) there is a line:</p> <pre><code> pep8.Checker(filename, good_lines).check_all() </code></pre> <p>This is what actually runs pep8 on the file. When it encounters an error it is supposed to call the <code>pep8.Checker.report_error</code> function, and there is a custom callback defined in the plugin. However, I have traced it, and I see that it is not being called. The checker is running correctly and producing out. I have examined the pep8 code here <a href="https://github.com/jcrocholl/pep8/blob/master/pep8.py" rel="nofollow">https://github.com/jcrocholl/pep8/blob/master/pep8.py</a>, but no luck.</p> <p>I imagine there is a very simple fix... probably a configuration somewhere. If anyone has insights, that would be appreciated.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload