Commit 657888e5 authored by Antti Tanhuanpää's avatar Antti Tanhuanpää

Skip removed files

parent 6a48cdf9
#!/usr/bin/env python3
from os import path
import shlex
import subprocess
import sys
......@@ -27,10 +28,13 @@ def get_linter(filename):
def lint(filename, require_linter=False):
if not path.exists(filename):
return True
try:
linter_args = get_linter(filename)
except NoLinterFound:
print('Not linter found for', filename, file=sys.stderr)
print('No linter found for', filename, file=sys.stderr)
return not require_linter
print(filename)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment