mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-11 15:24:18 +00:00
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
This commit is contained in:
commit
5b1d84f0ec
1 changed files with 2 additions and 2 deletions
|
|
@ -41,8 +41,8 @@ def hook(lazy=False, strict=False):
|
||||||
app = application.Application()
|
app = application.Application()
|
||||||
with make_temporary_directory() as tempdir:
|
with make_temporary_directory() as tempdir:
|
||||||
filepaths = list(copy_indexed_files_to(tempdir, lazy))
|
filepaths = list(copy_indexed_files_to(tempdir, lazy))
|
||||||
app.initialize(filepaths)
|
app.initialize(['.'])
|
||||||
app.run_checks()
|
app.run_checks(filepaths)
|
||||||
|
|
||||||
app.report_errors()
|
app.report_errors()
|
||||||
if strict:
|
if strict:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue