Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
set --follow-imports silent for mypy linter
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Jun 15, 2017
1 parent f8b34de commit 9373acc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions badwolf/lint/linters/mypy.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ def lint_files(self, files):
self.python_name,
'-m',
'mypy',
'--follow-imports',
'silent',
]
command += files
_, output = run_command(command, split=True, include_errors=True, cwd=self.working_dir)
Expand All @@ -38,6 +40,8 @@ def lint_files(self, files):

for line in output:
filename, line, level, message = self._parse_line(line)
if level == 'note':
continue
is_error = level == 'error'
yield Problem(filename, line, message, self.name, is_error=is_error)

Expand Down

0 comments on commit 9373acc

Please sign in to comment.