From 8698248331962d8720617eac634cd53e89ec76a0 Mon Sep 17 00:00:00 2001 From: Jason Simeone Date: Thu, 8 Jan 2015 11:53:11 -0500 Subject: [PATCH 1/2] Fixed issue with pep8 not respecting disabled codes. --- prospector/tools/pep8/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prospector/tools/pep8/__init__.py b/prospector/tools/pep8/__init__.py index 64c3320a..f34cf776 100644 --- a/prospector/tools/pep8/__init__.py +++ b/prospector/tools/pep8/__init__.py @@ -126,7 +126,7 @@ def configure(self, prospector_config, found_files): # adding prospector-flavoured configuration. # pylint: disable=W0201 self.checker.select = () - self.checker.ignore = prospector_config.get_disabled_messages('pep8') + self.checker.options.ignore = tuple(prospector_config.get_disabled_messages('pep8')) if 'max-line-length' in prospector_config.tool_options('pep8'): self.checker.options.max_line_length = \ From cbbb60e1967408f56b26122d3f6b03f0d2521a77 Mon Sep 17 00:00:00 2001 From: Jason Simeone Date: Thu, 8 Jan 2015 11:57:07 -0500 Subject: [PATCH 2/2] Forgot to fix the select option. --- prospector/tools/pep8/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prospector/tools/pep8/__init__.py b/prospector/tools/pep8/__init__.py index f34cf776..f472836f 100644 --- a/prospector/tools/pep8/__init__.py +++ b/prospector/tools/pep8/__init__.py @@ -125,7 +125,7 @@ def configure(self, prospector_config, found_files): # Make sure pep8's code ignores are fully reset to zero before # adding prospector-flavoured configuration. # pylint: disable=W0201 - self.checker.select = () + self.checker.options.select = () self.checker.options.ignore = tuple(prospector_config.get_disabled_messages('pep8')) if 'max-line-length' in prospector_config.tool_options('pep8'):