wistful / SublimeAutoPEP8

Automatically formats Python code to conform to the PEP 8 style guide using autopep8 and pep8 modules
144 stars 23 forks source link

Invalid default ignore settings #35

Closed romuald closed 9 years ago

romuald commented 9 years ago

It seems that the default settings for "ignore" are invalid:

{
    "ignore": "E24, E226",
}

autopep8 does not trim the white spaces between codes, so only E24 is actually ignored

Possible fixes:

def _split_comma_separated(string):
    """Return a set of strings."""
    # before: return set(filter(None, string.split(',')))
    return set(map(unicode.strip, filter(None, string.split(','))))
wistful commented 9 years ago

Fixed in v1.3