diff --git a/flake8/run.py b/flake8/run.py index 6c89df3..f7b23b1 100644 --- a/flake8/run.py +++ b/flake8/run.py @@ -136,6 +136,9 @@ def run(command): def git_hook(complexity=-1, strict=False, ignore=None): + global pep8style + pep8style = pep8.StyleGuide(config_file=True) + _initpep8() if ignore: pep8.options.ignore=ignore