From 472cc21380ea9a6171bb78a9655ace24e7e52f32 Mon Sep 17 00:00:00 2001 From: huhao Date: Mon, 26 Nov 2012 11:22:26 +0800 Subject: [PATCH] Fix git hook --- flake8/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake8/run.py b/flake8/run.py index d1af4d3..cbb456d 100644 --- a/flake8/run.py +++ b/flake8/run.py @@ -160,7 +160,7 @@ def git_hook(complexity=-1, strict=False, ignore=None, lazy=False): continue if not os.path.exists(filename): continue - warnings += check_file(filename, complexity) + warnings += check_file(path=filename, ignore=ignore, complexity=complexity) if strict: return warnings