【发布时间】:2014-02-06 22:31:21
【问题描述】:
这是我目前拥有的:
sys.exit(git_hook(complexity=COMPLEXITY, strict=STRICT, ignore='W801,E128,E501,W402,F403'))
但它抱怨 django south 迁移文件,所以我想排除迁移文件,我的直接猜测是:
sys.exit(git_hook(complexity=COMPLEXITY, strict=STRICT, ignore='W801,E128,E501,W402,F403', exclude='migrations'))
但收到此错误:
TypeError: git_hook() got an unexpected keyword argument 'exclude'
查看源代码没有这样的参数供我使用...
def git_hook(complexity=-1, strict=False, ignore=None, lazy=False):
有没有办法让我排除一些文件?
【问题讨论】:
标签: flake8