Sublime Hax: Turning off the Error Checking for Anaconda in SublimeREPL

Screen Shot 2015-04-18 at 12.00.10 PM

So I been using the Anaconda Package in Sublime via Sublime REPL. If you are trying to do this too, I have a few posts on it that you should refer to.

Now if you are already doing this, you might see something like this when you load a file from someone else.Screen Shot 2015-04-18 at 12.03.03 PM

If you these error alerts drive you crazy and you want to turn some of them off, this is the post for you. At first, I use to go back and fix these errors but most of them deal with spacing around certain things like comments, equal signs, ( ) etc.

While it might be good practice to code in accordance to these conventions, going back to fix some one else’s code or even when you are writing some yourself, these errors can be extremely distracting. If you hover over the line, at the bottom of the Sublime window, it will tell you what the error is.

For example, the first error in this picture is “[W] PEP 8 (E501): line too long (89 > 79 characters), Line 2, Column 78” So what if you didn’t care that the line is “too long”. Lets change it so it stops showing us this error.

Step 1
Go to Sublime Text > Preferences > Package Settings > Anaconda  and Open: Setting – Defaults and Setting -User.
Screen Shot 2015-04-18 at 12.13.44 PM

Step 2
Copy all of settings JSON in the Defaults and paste it into the User Settings Window.

Step 3
Find the “pep8_ignore”: in the JSON (Mine was around line: 338)

Screen Shot 2015-04-18 at 12.16.42 PM

Step 4
Type "E501" so the JSON files looks like this:
Screen Shot 2015-04-18 at 1.30.10 PM

Step 5
Save the JSON file and you should see the error disappear!
Screen Shot 2015-04-18 at 1.38.16 PM

If you want to remove multiple error checking codes, connect new error codes with a , and make sure you put them in a ” ” like this: Screen Shot 2015-04-18 at 12.00.10 PM

See all the errors disappear! Beautiful.
Screen Shot 2015-04-18 at 1.41.59 PM

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s