Skip to content

Commit

Permalink
Merge branch 'bug/52' into 'master'
Browse files Browse the repository at this point in the history
Change the git-hook ignore default to None

When ignore is an empty string, it will apparently not run any checks at
all. Using None as the default ensures that it does run the appropriate
checks.

Closes #52

See merge request !27
  • Loading branch information
sigmavirus24 committed Apr 6, 2015
2 parents ea628fa + 12fab2f commit 159c493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flake8/hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def get_git_param(option, default=''):
# git config flake8.complexity 10
COMPLEXITY = get_git_param('FLAKE8_COMPLEXITY', 10)
STRICT = get_git_param('FLAKE8_STRICT', False)
IGNORE = get_git_param('FLAKE8_IGNORE')
IGNORE = get_git_param('FLAKE8_IGNORE', None)
LAZY = get_git_param('FLAKE8_LAZY', False)
if __name__ == '__main__':
Expand Down

0 comments on commit 159c493

Please sign in to comment.