每当我执行 git commit 时, Flake8 的pre-commit
git 钩子都会提高。flake8: error: input not specified
挂钩文件与官方示例相同:
#!/usr/bin/python
import sys
from flake8.run import git_hook
COMPLEXITY = 10
STRICT = False
if __name__ == '__main__':
sys.exit(git_hook(complexity=COMPLEXITY, strict=STRICT, ignore='E501'))