1. mccabe.py support # NOQA 2. run.py support ignore some errors 3. run.py add max_line_length default value

This commit is contained in:
onlytiancai 2012-09-12 11:03:20 +08:00
parent dd92d52f06
commit ccc7acc62e
3 changed files with 17 additions and 10 deletions

2
README
View file

@ -90,7 +90,7 @@ To use the Git hook on any *commit*, add a **pre-commit** file in the
STRICT = False
if __name__ == '__main__':
sys.exit(git_hook(complexity=COMPLEXITY, strict=STRICT))
sys.exit(git_hook(complexity=COMPLEXITY, strict=STRICT, ignore='E501'))
If *strict* option is set to **True**, any warning will block the commit. When