Skip to content

Commit 3ac93a1

Browse files
authored
Merge pull request #61 from CrepeGoat/fix/59-filter-deprecation-errors
changed `on_stderr` to filter deprecation errors
2 parents 798bf4f + ca90f1d commit 3ac93a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

linter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def on_stderr(self, stderr):
2727
stderr = re.sub(
2828
'No config file found, using default configuration\n', '', stderr)
2929
stderr = re.sub('Using config file .+\n', '', stderr)
30+
stderr = re.sub('(?m)^.*DeprecationWarning.*\n.*\n', '', stderr)
3031

3132
if stderr:
3233
self.notify_failure()

0 commit comments

Comments
 (0)