Skip to content

Commit

Permalink
make autopep8 work again but it stills swallow indentation error mess…
Browse files Browse the repository at this point in the history
…ages
  • Loading branch information
DamnWidget committed Aug 18, 2017
1 parent 177f727 commit a7842f5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions anaconda_lib/autopep/autopep8_lib/autopep8.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,12 +373,8 @@ def continued_indentation(logical_line, tokens, indent_level, indent_char,
yield (pos, 'E125 {0}'.format(desired_indent))


# AutoPEP8 breaks pep8 messaging, that is not a problem if you just use it
# as a command line application but it is when used as a library, I have
# no time to fix other projects/developers mistakes so I just disable this
# feature from AutoPEP8
# del pycodestyle._checks['logical_line'][pycodestyle.continued_indentation]
# pycodestyle.register_check(continued_indentation)
del pycodestyle._checks['logical_line'][pycodestyle.continued_indentation]
pycodestyle.register_check(continued_indentation)


class FixPEP8(object):
Expand Down

0 comments on commit a7842f5

Please sign in to comment.