diff --git a/prospector/tools/pyflakes/__init__.py b/prospector/tools/pyflakes/__init__.py index 21f59a7e..5f951576 100644 --- a/prospector/tools/pyflakes/__init__.py +++ b/prospector/tools/pyflakes/__init__.py @@ -120,7 +120,9 @@ def __init__(self, *args, **kwargs): self.ignore_codes = () def configure(self, prospector_config, _): - self.ignore_codes = prospector_config.get_disabled_messages('pyflakes') + ignores = prospector_config.get_disabled_messages('pyflakes') + # convert old style to new + self.ignore_codes = (LEGACY_CODE_MAP.get(code, code) for code in ignores) return None def run(self, found_files):