Fixing postgres command
This commit is contained in:
@ -29,14 +29,6 @@ def py_lint(files_modified):
|
||||
return report.total_errors != 0
|
||||
|
||||
|
||||
def js_lint(files_modified):
|
||||
has_errors = False
|
||||
if os.system('node_modules/.bin/jshint src/sentry'):
|
||||
has_errors = True
|
||||
|
||||
return has_errors
|
||||
|
||||
|
||||
def main():
|
||||
from flake8.hooks import run
|
||||
|
||||
@ -46,7 +38,7 @@ def main():
|
||||
|
||||
files_modified = filter(lambda x: os.path.exists(x), files_modified)
|
||||
|
||||
if any((py_lint(files_modified), js_lint(files_modified))):
|
||||
if py_lint(files_modified):
|
||||
return 1
|
||||
return 0
|
||||
|
||||
|
Reference in New Issue
Block a user