mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-12 15:44:17 +00:00
bugfix: shift a line into loop
This commit is contained in:
parent
06256daf3a
commit
b98d036e06
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ def git_hook(complexity=-1, strict=False, ignore=None, lazy=False):
|
||||||
# write staged version of file to temporary directory
|
# write staged version of file to temporary directory
|
||||||
with open(filename, "wb") as fh:
|
with open(filename, "wb") as fh:
|
||||||
fh.write(out)
|
fh.write(out)
|
||||||
files_to_check.append(filename)
|
files_to_check.append(filename)
|
||||||
# Run the checks
|
# Run the checks
|
||||||
report = flake8_style.check_files(files_to_check)
|
report = flake8_style.check_files(files_to_check)
|
||||||
# remove temporary directory
|
# remove temporary directory
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue