Skip to content

Commit

Permalink
fix flake8 hooks and settings
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy committed Nov 30, 2016
1 parent 672033b commit 73422aa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions hooks/pre-commit
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/usr/bin/python
#!/usr/bin/python3

import sys
from flake8.run import git_hook

COMPLEXITY = 10
STRICT = False
from flake8.main import git

STRICT = True


if __name__ == '__main__':
sys.exit(git_hook(complexity=COMPLEXITY, strict=STRICT, ignore='E501'))
sys.exit(git.hook(strict=STRICT))
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[flake8]
max-line-length = 180
exclude = env/*,*/migrations/*,*/static/*,*/bow/*,node_modules/*
exclude = env/*,*/migrations/*,*/static/*,*/bow/*,node_modules/*,*.html
max-complexity = 10
ignore=C000

0 comments on commit 73422aa

Please sign in to comment.