From c89743dd23f3d89a2725053e5cca5d06b34f0c1c Mon Sep 17 00:00:00 2001 From: "Kenneth M. Elf Sternberg" Date: Mon, 26 Sep 2016 15:52:46 -0700 Subject: [PATCH] Git lint passes its own linting. Yay! --- git_lint/git_lint.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/git_lint/git_lint.py b/git_lint/git_lint.py index 7cfb9f7..c6e4922 100644 --- a/git_lint/git_lint.py +++ b/git_lint/git_lint.py @@ -16,9 +16,6 @@ except ImportError as e: _ = gettext.gettext -def tap(a): - print("TAP:", a) - return a VERSION = '0.0.4' NAME = 'git-lint' @@ -541,7 +538,9 @@ def build_lint_runner(linters, filenames): [run_one_linter(linter, filenames) for linter in linters], []) return lint_runner + def dryrun(linters, filenames): + def dryrunonefile(filename, linter): trimmed_filename = filename.replace(git_base + '/', '', 1) return (trimmed_filename, linter.name, 0, [' {}'.format(trimmed_filename)]) @@ -552,9 +551,6 @@ def dryrun(linters, filenames): return [dryrunonefile(filename, linter) for filename in files_to_check] return reduce(operator.add, [dryrunonce(linter, filenames) for linter in linters], []) - - - # __ __ _