diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-11-08 21:11:19 -0600 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-11-08 21:17:24 -0600 |
| commit | 7320cce02b24522abb707bedc05d6dad5a568f9a (patch) | |
| tree | a4f141ed673f57df9280611c27ac1f574ced0f10 /src/flake8 | |
| parent | c2ef3c2ce04717259dc8c430a1756132e2c617a6 (diff) | |
| download | flake8-7320cce02b24522abb707bedc05d6dad5a568f9a.tar.gz | |
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
Diffstat (limited to 'src/flake8')
| -rw-r--r-- | src/flake8/main/git.py | 4 |
1 files 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: |
