Home Download Buy Blog Forum Support

SublimeLinter python problem

SublimeLinter python problem

Postby theadamlt on Thu Dec 22, 2011 1:43 pm

Hi all,

I installed SublimeLinter and it works great, exept for Python.
I use 32-bit Ubuntu 11.10 with python 2.6 and 2.7
Here is a screenshot from when i have a python filen open:
screen.png
Screenshot from python file
screen.png (126.85 KiB) Viewed 5736 times


Does anyone have a solution to this?

Thank you in advance

Adam
theadamlt
 
Posts: 5
Joined: Thu Dec 22, 2011 1:39 pm

Re: SublimeLinter python problem

Postby C0D312 on Thu Dec 22, 2011 2:14 pm

It's not a problem, it is just going by the pep8 guidelines. If you put your cursor on any of the lines, the status bar will tell you the problem. Looking at your screenshot, it says PEP 8 W191. You can disable individual pep8 rules by adding them to your user preferences:
Code: Select all
   "pep8_ignore":
    [
        "E225","E231","E501", "E502", "E301", "E302", "E303", "W292", "W293"
    ]


For example, I don't like pep8 telling me how to space my code so that is what my preferences look like.

So for you, just add "W191" to the pep8_ignore.
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: SublimeLinter python problem

Postby theadamlt on Thu Dec 22, 2011 3:12 pm

Great thank you!
theadamlt
 
Posts: 5
Joined: Thu Dec 22, 2011 1:39 pm

Re: SublimeLinter python problem

Postby aparajita on Sun Dec 25, 2011 6:23 pm

theadamlt wrote:Does anyone have a solution to this?


The solution is not to use tabs for indenting, use spaces. I used to use tabs, but the general consensus in the open source community is that tabs are evil.
aparajita
 
Posts: 177
Joined: Sun Jul 24, 2011 10:42 pm

Re: SublimeLinter python problem

Postby flying sheep on Sat Apr 07, 2012 2:28 pm

aparajita wrote:
theadamlt wrote:Does anyone have a solution to this?


The solution is not to use tabs for indenting, use spaces. I used to use tabs, but the general consensus in the open source community is that tabs are evil.
no.

read here
flying sheep
 
Posts: 3
Joined: Sat Apr 07, 2012 2:27 pm


Return to Plugin Development

Who is online

Users browsing this forum: Majestic-12 [Bot] and 5 guests