Skip to content

Commit

Permalink
Add support for registering options in Flake8 3
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmavirus24 committed May 30, 2016
1 parent 8c7cd5d commit 24ed5ee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ Links
Changes
-------

0.5.0 - 2016-05-30
``````````````````

* PyCon 2016 PDX release

* Add support for Flake8 3.0

0.4.0 - 2016-01-27
``````````````````

Expand Down
4 changes: 2 additions & 2 deletions mccabe.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
except ImportError: # Python 2.5
from flake8.util import ast, iter_child_nodes

__version__ = '0.4.0'
__version__ = '0.5.0'


class ASTVisitor(object):
Expand Down Expand Up @@ -236,7 +236,7 @@ def __init__(self, tree, filename):
def add_options(cls, parser):
flag = '--max-complexity'
kwargs = {
'defaults': -1,
'default': -1,
'action': 'store',
'type': 'int',
'help': 'McCabe complexity threshold',
Expand Down

0 comments on commit 24ed5ee

Please sign in to comment.