Commit 6a48cdf9 authored by Antti Tanhuanpää's avatar Antti Tanhuanpää

Allow parameters in linter config

parent 68735c7c
......@@ -8,7 +8,7 @@ import sys
linters = {
'js': ('/usr/bin/eslint', '--stdin'),
'py': ('/usr/bin/flake8', '--ignore=E121,E123,E126,E266,E501,E704,E731', '-'),
'scss': ('/usr/bin/scss-lint', '-'),
'scss': ('/usr/bin/scss-lint', '--stdin-file-path', '{filename}', '-'),
}
......@@ -23,7 +23,7 @@ def get_linter(filename):
except (KeyError, ValueError):
raise NoLinterFound
return linter_args
return (arg.format(filename=filename) for arg in linter_args)
def lint(filename, require_linter=False):
......
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