From a7842f59412786759739ec5eb3a2d03d8838627b Mon Sep 17 00:00:00 2001 From: Oscar Campos Date: Fri, 18 Aug 2017 09:05:46 +0100 Subject: [PATCH] make autopep8 work again but it stills swallow indentation error messages --- anaconda_lib/autopep/autopep8_lib/autopep8.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/anaconda_lib/autopep/autopep8_lib/autopep8.py b/anaconda_lib/autopep/autopep8_lib/autopep8.py index c9ca5a51..918af2d6 100644 --- a/anaconda_lib/autopep/autopep8_lib/autopep8.py +++ b/anaconda_lib/autopep/autopep8_lib/autopep8.py @@ -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):