Skip to content

Commit

Permalink
Merge pull request #61 from CrepeGoat/fix/59-filter-deprecation-errors
Browse files Browse the repository at this point in the history
changed `on_stderr` to filter deprecation errors
  • Loading branch information
kaste authored May 31, 2020
2 parents 798bf4f + ca90f1d commit 3ac93a1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def on_stderr(self, stderr):
stderr = re.sub(
'No config file found, using default configuration\n', '', stderr)
stderr = re.sub('Using config file .+\n', '', stderr)
stderr = re.sub('(?m)^.*DeprecationWarning.*\n.*\n', '', stderr)

if stderr:
self.notify_failure()
Expand Down

0 comments on commit 3ac93a1

Please sign in to comment.