mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-03 19:56:54 +00:00
display all versions in --version - fixes #7
This commit is contained in:
parent
1fb8c5113b
commit
3fabe017ae
4 changed files with 13 additions and 2 deletions
|
|
@ -1 +1,4 @@
|
|||
#
|
||||
|
||||
__version__ = '1.1'
|
||||
|
||||
|
|
|
|||
|
|
@ -92,6 +92,8 @@ before the docstring, you can use \n for newline, \t for tab and \s
|
|||
for space.
|
||||
|
||||
"""
|
||||
from flake8 import __version__ as flake8_version
|
||||
from pyflakes import __version__ as pep8_version
|
||||
|
||||
__version__ = '0.6.1'
|
||||
|
||||
|
|
@ -1266,7 +1268,9 @@ def process_options(arglist=None):
|
|||
Process options passed either via arglist or via command line args.
|
||||
"""
|
||||
global options, args
|
||||
parser = OptionParser(version=__version__,
|
||||
version = '%s (pyflakes: %s, pep8: %s)' % (flake8_version, pep8_version,
|
||||
__version__)
|
||||
parser = OptionParser(version=version,
|
||||
usage="%prog [options] input ...")
|
||||
parser.add_option('--max-complexity', default=-1, action='store',
|
||||
type='int', help="McCabe complexity treshold")
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@ import sys
|
|||
from flake8 import messages
|
||||
from flake8.util import skip_warning
|
||||
|
||||
__version__ = '0.5.0'
|
||||
|
||||
# utility function to iterate over an AST node's children, adapted
|
||||
# from Python 2.6's standard ast module
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue