summaryrefslogtreecommitdiff
path: root/src/flake8
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2016-11-09 18:02:19 +0000
committerIan Cordasco <graffatcolmingov@gmail.com>2016-11-09 18:02:19 +0000
commit5b1d84f0ecb4a37692ec5cbdbd4432409f0971a5 (patch)
tree7fcc28e30a73f3c16081f035b14cca97b8fcd49e /src/flake8
parent0c092682471897ec3efd102085befddbfed844be (diff)
parent7320cce02b24522abb707bedc05d6dad5a568f9a (diff)
downloadflake8-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/flake8')
-rw-r--r--src/flake8/main/git.py4
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: