Sublime Forum

SublimeLinter python problem

#1

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:


Does anyone have a solution to this?

Thank you in advance

Adam

0 Likes

#2

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] “pep8_ignore”:

    "E225","E231","E501", "E502", "E301", "E302", "E303", "W292", "W293"
][/code]

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.

0 Likes

#3

Great thank you!

0 Likes

#4

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.

0 Likes

#5

[quote=“aparajita”]

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.[/quote]

no.

read here

0 Likes