From 5208f706f4e06183f607205f14b03ccb071e215e Mon Sep 17 00:00:00 2001 From: "Kenneth M. Elf Sternberg" Date: Mon, 3 Oct 2016 12:34:02 -0700 Subject: [PATCH] Make sure pre-commit reflects the latest revision. Works great. --- bin/pre-commit | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/pre-commit b/bin/pre-commit index eab5e11..59a5241 100755 --- a/bin/pre-commit +++ b/bin/pre-commit @@ -1,5 +1,6 @@ #!/usr/bin/env python -from git_lint import load_config, run_linters, git_base +from git_lint.git_lint import load_config, run_linters, git_base +from git_lint.reporters import print_report import gettext _ = gettext.gettext @@ -20,14 +21,14 @@ def main(*args): unlintable_filenames, cant_lint_filenames, broken_linter_names, - unfindable_filenames) = run_linters(options, config) + unfindable_filenames) = run_linters(pre_commit_options, config) print_report(results, unlintable_filenames, cant_lint_filenames, broken_linter_names, unfindable_filenames, - options) + pre_commit_options) if not len(results): return 0