From 7320cce02b24522abb707bedc05d6dad5a568f9a Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Tue, 8 Nov 2016 21:11:19 -0600 Subject: [PATCH] Change how we initialize our git hook application Look for configuration files in the current directory while checking the files in the temporary directory. Closes #210 Closes #223 --- src/flake8/main/git.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/flake8/main/git.py b/src/flake8/main/git.py index d0c87d3..3f9689f 100644 --- a/src/flake8/main/git.py +++ b/src/flake8/main/git.py @@ -41,8 +41,8 @@ def hook(lazy=False, strict=False): app = application.Application() with make_temporary_directory() as tempdir: filepaths = list(copy_indexed_files_to(tempdir, lazy)) - app.initialize(filepaths) - app.run_checks() + app.initialize(['.']) + app.run_checks(filepaths) app.report_errors() if strict: