mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-12 07:44:16 +00:00
init pep8 - fixes #32
This commit is contained in:
parent
373a810bab
commit
00696f120e
1 changed files with 3 additions and 0 deletions
|
|
@ -136,6 +136,9 @@ def run(command):
|
||||||
|
|
||||||
|
|
||||||
def git_hook(complexity=-1, strict=False, ignore=None):
|
def git_hook(complexity=-1, strict=False, ignore=None):
|
||||||
|
global pep8style
|
||||||
|
pep8style = pep8.StyleGuide(config_file=True)
|
||||||
|
|
||||||
_initpep8()
|
_initpep8()
|
||||||
if ignore:
|
if ignore:
|
||||||
pep8.options.ignore=ignore
|
pep8.options.ignore=ignore
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue