Skip to content

Commit

Permalink
Merge branch 'issue_505'
Browse files Browse the repository at this point in the history
  • Loading branch information
DamnWidget committed Dec 7, 2016
2 parents c39db09 + daf10f9 commit dfde871
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions anaconda_lib/linting/sublime.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,15 @@ def parse_errors(self, errors):
ignore_star = get_settings(self.view, 'pyflakes_ignore_import_*', True)

for error in errors:
try:
line_text = self.view.substr(self.view.full_line(
self.view.text_point(error['lineno']-1, 0)
))
if '# noqa' in line_text:
continue
except Exception as e:
print(e)

error_level = error.get('level', 'W')
messages = errors_level[error_level]['messages']
underlines = errors_level[error_level]['underlines']
Expand Down

0 comments on commit dfde871

Please sign in to comment.