diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-11-09 18:02:19 +0000 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-11-09 18:02:19 +0000 |
| commit | 5b1d84f0ecb4a37692ec5cbdbd4432409f0971a5 (patch) | |
| tree | 7fcc28e30a73f3c16081f035b14cca97b8fcd49e /src | |
| parent | 0c092682471897ec3efd102085befddbfed844be (diff) | |
| parent | 7320cce02b24522abb707bedc05d6dad5a568f9a (diff) | |
| download | flake8-5b1d84f0ecb4a37692ec5cbdbd4432409f0971a5.tar.gz | |
Merge branch 'bug/223' into 'master'
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 #223
Closes #210
See merge request !136
Diffstat (limited to 'src')
| -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: |
