Skip to content

Commit

Permalink
[refs prospector-dev#100] The pyflakes tool should still understand o…
Browse files Browse the repository at this point in the history
…ld codes
  • Loading branch information
carlio committed Jan 31, 2015
1 parent 7067c94 commit 1cdebc5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion prospector/tools/pyflakes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 1cdebc5

Please sign in to comment.