Commit 5a9c8328 authored by Ondřej Nový's avatar Ondřej Nový

Import python-flake8_2.5.4.orig.tar.gz

parent 149cf8e7
CHANGES
=======
2.5.4 - 2016-02-11
------------------
- **Bug** Missed an attribute rename during the v2.5.3 release.
2.5.3 - 2016-02-11
------------------
- **Bug** Actually parse ``output_file`` and ``enable_extensions`` from config
files
2.5.2 - 2016-01-30
------------------
- **Bug** Parse ``output_file`` and ``enable_extensions`` from config files
- **Improvement** Raise upper bound on mccabe plugin to allow for version
0.4.0
2.5.1 - 2015-12-08
------------------
- **Bug** Properly look for ``.flake8`` in current working directory
(`GitLab#103`_)
- **Bug** Monkey-patch ``pep8.stdin_get_value`` to cache the actual value in
stdin. This helps plugins relying on the function when run with
multiprocessing. (`GitLab#105`_, `GitLab#107`_)
.. _GitLab#103: https://gitlab.com/pycqa/flake8/issues/103
.. _GitLab#105: https://gitlab.com/pycqa/flake8/issues/105
.. _GitLab#107: https://gitlab.com/pycqa/flake8/issues/107
2.5.0 - 2015-10-26
------------------
- **Improvement** Raise cap on PyFlakes for Python 3.5 support
- **Improvement** Avoid deprecation warnings when loading extensions
(`GitLab#59`_, `GitLab#90`_)
- **Improvement** Separate logic to enable "off-by-default" extensions
(`GitLab#67`_)
- **Bug** Properly parse options to setuptools Flake8 command (`GitLab!41`_)
- **Bug** Fix exceptions when output on stdout is truncated before Flake8
finishes writing the output (`GitLab#69`_)
- **Bug** Fix error on OS X where Flake8 can no longer acquire or create new
semaphores (`GitLab#74`_)
.. _GitLab!41: https://gitlab.com/pycqa/flake8/merge_requests/41
.. _GitLab#59: https://gitlab.com/pycqa/flake8/issues/59
.. _GitLab#67: https://gitlab.com/pycqa/flake8/issues/67
.. _GitLab#69: https://gitlab.com/pycqa/flake8/issues/69
.. _GitLab#74: https://gitlab.com/pycqa/flake8/issues/74
.. _GitLab#90: https://gitlab.com/pycqa/flake8/issues/90
2.4.1 - 2015-05-18
------------------
- **Bug** Do not raise a ``SystemError`` unless there were errors in the
setuptools command. (`GitLab#39`_, `GitLab!23`_)
- **Bug** Do not verify dependencies of extensions loaded via entry-points.
- **Improvement** Blacklist versions of pep8 we know are broken
.. _GitLab#39: https://gitlab.com/pycqa/flake8/issues/39
.. _GitLab!23: https://gitlab.com/pycqa/flake8/merge_requests/23
2.4.0 - 2015-03-07
------------------
- **Bug** Print filenames when using multiprocessing and ``-q`` option.
(`GitLab#31`_)
- **Bug** Put upper cap on dependencies. The caps for 2.4.0 are:
- ``pep8 < 1.6`` (Related to `GitLab#35`_)
- ``mccabe < 0.4``
- ``pyflakes < 0.9``
See also `GitLab#32`_
- **Bug** Files excluded in a config file were not being excluded when flake8
was run from a git hook. (`GitHub#2`_)
- **Improvement** Print warnings for users who are providing mutually
exclusive options to flake8. (`GitLab#8`_, `GitLab!18`_)
- **Feature** Allow git hook configuration to live in ``.git/config``.
See the updated `VCS hooks docs`_ for more details. (`GitLab!20`_)
.. _GitHub#2: https://github.com/pycqa/flake8/pull/2
.. _GitLab#8: https://gitlab.com/pycqa/flake8/issues/8
.. _GitLab#31: https://gitlab.com/pycqa/flake8/issues/31
.. _GitLab#32: https://gitlab.com/pycqa/flake8/issues/32
.. _GitLab#35: https://gitlab.com/pycqa/flake8/issues/35
.. _GitLab!18: https://gitlab.com/pycqa/flake8/merge_requests/18
.. _GitLab!20: https://gitlab.com/pycqa/flake8/merge_requests/20
.. _VCS hooks docs: https://flake8.readthedocs.org/en/latest/vcs.html
2.3.0 - 2015-01-04
------------------
- **Feature**: Add ``--output-file`` option to specify a file to write to
instead of ``stdout``.
- **Bug** Fix interleaving of output while using multiprocessing
(`GitLab#17`_)
.. _GitLab#17: https://gitlab.com/pycqa/flake8/issues/17
2.2.5 - 2014-10-19
------------------
- Flush standard out when using multiprocessing
- Make the check for "# flake8: noqa" more strict
2.2.4 - 2014-10-09
------------------
- Fix bugs triggered by turning multiprocessing on by default (again)
Multiprocessing is forcibly disabled in the following cases:
- Passing something in via stdin
- Analyzing a diff
- Using windows
- Fix --install-hook when there are no config files present for pep8 or
flake8.
- Fix how the setuptools command parses excludes in config files
- Fix how the git hook determines which files to analyze (Thanks Chris
Buccella!)
2.2.3 - 2014-08-25
------------------
- Actually turn multiprocessing on by default
2.2.2 - 2014-07-04
------------------
......
......@@ -19,4 +19,8 @@ Contributors (by order of appearance) :
- Marc Labbé
- Bruno Miguel Custódio
- Florent Xicluna
- Austin Morton
\ No newline at end of file
- Austin Morton
- Michael McNeil Forbes
- Christian Long
- Tyrel Souza
- Corey Farwell
Metadata-Version: 1.1
Name: flake8
Version: 2.2.2
Version: 2.5.4
Summary: the modular source code checker: pep8, pyflakes and co
Home-page: http://bitbucket.org/tarek/flake8
Home-page: https://gitlab.com/pycqa/flake8
Author: Ian Cordasco
Author-email: graffatcolmingov@gmail.com
License: MIT
......@@ -65,6 +65,28 @@ Description: ======
anything that goes beyond 10 is too complex.
See https://en.wikipedia.org/wiki/Cyclomatic_complexity.
Frequently Asked Questions
==========================
Why does flake8 pin the version of pep8?
----------------------------------------
Version 1.6 of pep8 doesn't work properly with flake8. Until pep8 releases a
version that works, flake8 pins the version of pep8 so that flake8 will work as
a whole.
Is flake8 broken?
-----------------
Flake8 combines two other projects that are significant on their own: pep8 and
PyFlakes. If flake8 is doing something you don't like, it is quite likely that
the problem lies in one of those other projects. You can run them separately
to see if they are the cause of your difficulties. We greatly appreciate your
efforts to diagnose the source of the problem before reporting bugs against
flake8.
Questions or Feedback
=====================
......@@ -86,6 +108,156 @@ Description: ======
CHANGES
=======
2.5.4 - 2016-02-11
------------------
- **Bug** Missed an attribute rename during the v2.5.3 release.
2.5.3 - 2016-02-11
------------------
- **Bug** Actually parse ``output_file`` and ``enable_extensions`` from config
files
2.5.2 - 2016-01-30
------------------
- **Bug** Parse ``output_file`` and ``enable_extensions`` from config files
- **Improvement** Raise upper bound on mccabe plugin to allow for version
0.4.0
2.5.1 - 2015-12-08
------------------
- **Bug** Properly look for ``.flake8`` in current working directory
(`GitLab#103`_)
- **Bug** Monkey-patch ``pep8.stdin_get_value`` to cache the actual value in
stdin. This helps plugins relying on the function when run with
multiprocessing. (`GitLab#105`_, `GitLab#107`_)
.. _GitLab#103: https://gitlab.com/pycqa/flake8/issues/103
.. _GitLab#105: https://gitlab.com/pycqa/flake8/issues/105
.. _GitLab#107: https://gitlab.com/pycqa/flake8/issues/107
2.5.0 - 2015-10-26
------------------
- **Improvement** Raise cap on PyFlakes for Python 3.5 support
- **Improvement** Avoid deprecation warnings when loading extensions
(`GitLab#59`_, `GitLab#90`_)
- **Improvement** Separate logic to enable "off-by-default" extensions
(`GitLab#67`_)
- **Bug** Properly parse options to setuptools Flake8 command (`GitLab!41`_)
- **Bug** Fix exceptions when output on stdout is truncated before Flake8
finishes writing the output (`GitLab#69`_)
- **Bug** Fix error on OS X where Flake8 can no longer acquire or create new
semaphores (`GitLab#74`_)
.. _GitLab!41: https://gitlab.com/pycqa/flake8/merge_requests/41
.. _GitLab#59: https://gitlab.com/pycqa/flake8/issues/59
.. _GitLab#67: https://gitlab.com/pycqa/flake8/issues/67
.. _GitLab#69: https://gitlab.com/pycqa/flake8/issues/69
.. _GitLab#74: https://gitlab.com/pycqa/flake8/issues/74
.. _GitLab#90: https://gitlab.com/pycqa/flake8/issues/90
2.4.1 - 2015-05-18
------------------
- **Bug** Do not raise a ``SystemError`` unless there were errors in the
setuptools command. (`GitLab#39`_, `GitLab!23`_)
- **Bug** Do not verify dependencies of extensions loaded via entry-points.
- **Improvement** Blacklist versions of pep8 we know are broken
.. _GitLab#39: https://gitlab.com/pycqa/flake8/issues/39
.. _GitLab!23: https://gitlab.com/pycqa/flake8/merge_requests/23
2.4.0 - 2015-03-07
------------------
- **Bug** Print filenames when using multiprocessing and ``-q`` option.
(`GitLab#31`_)
- **Bug** Put upper cap on dependencies. The caps for 2.4.0 are:
- ``pep8 < 1.6`` (Related to `GitLab#35`_)
- ``mccabe < 0.4``
- ``pyflakes < 0.9``
See also `GitLab#32`_
- **Bug** Files excluded in a config file were not being excluded when flake8
was run from a git hook. (`GitHub#2`_)
- **Improvement** Print warnings for users who are providing mutually
exclusive options to flake8. (`GitLab#8`_, `GitLab!18`_)
- **Feature** Allow git hook configuration to live in ``.git/config``.
See the updated `VCS hooks docs`_ for more details. (`GitLab!20`_)
.. _GitHub#2: https://github.com/pycqa/flake8/pull/2
.. _GitLab#8: https://gitlab.com/pycqa/flake8/issues/8
.. _GitLab#31: https://gitlab.com/pycqa/flake8/issues/31
.. _GitLab#32: https://gitlab.com/pycqa/flake8/issues/32
.. _GitLab#35: https://gitlab.com/pycqa/flake8/issues/35
.. _GitLab!18: https://gitlab.com/pycqa/flake8/merge_requests/18
.. _GitLab!20: https://gitlab.com/pycqa/flake8/merge_requests/20
.. _VCS hooks docs: https://flake8.readthedocs.org/en/latest/vcs.html
2.3.0 - 2015-01-04
------------------
- **Feature**: Add ``--output-file`` option to specify a file to write to
instead of ``stdout``.
- **Bug** Fix interleaving of output while using multiprocessing
(`GitLab#17`_)
.. _GitLab#17: https://gitlab.com/pycqa/flake8/issues/17
2.2.5 - 2014-10-19
------------------
- Flush standard out when using multiprocessing
- Make the check for "# flake8: noqa" more strict
2.2.4 - 2014-10-09
------------------
- Fix bugs triggered by turning multiprocessing on by default (again)
Multiprocessing is forcibly disabled in the following cases:
- Passing something in via stdin
- Analyzing a diff
- Using windows
- Fix --install-hook when there are no config files present for pep8 or
flake8.
- Fix how the setuptools command parses excludes in config files
- Fix how the git hook determines which files to analyze (Thanks Chris
Buccella!)
2.2.3 - 2014-08-25
------------------
- Actually turn multiprocessing on by default
2.2.2 - 2014-07-04
------------------
......
......@@ -57,6 +57,28 @@ This feature is quite useful to detect over-complex code. According to McCabe,
anything that goes beyond 10 is too complex.
See https://en.wikipedia.org/wiki/Cyclomatic_complexity.
Frequently Asked Questions
==========================
Why does flake8 pin the version of pep8?
----------------------------------------
Version 1.6 of pep8 doesn't work properly with flake8. Until pep8 releases a
version that works, flake8 pins the version of pep8 so that flake8 will work as
a whole.
Is flake8 broken?
-----------------
Flake8 combines two other projects that are significant on their own: pep8 and
PyFlakes. If flake8 is doing something you don't like, it is quite likely that
the problem lies in one of those other projects. You can run them separately
to see if they are the cause of your difficulties. We greatly appreciate your
efforts to diagnose the source of the problem before reporting bugs against
flake8.
Questions or Feedback
=====================
......
Metadata-Version: 1.1
Name: flake8
Version: 2.2.2
Version: 2.5.4
Summary: the modular source code checker: pep8, pyflakes and co
Home-page: http://bitbucket.org/tarek/flake8
Home-page: https://gitlab.com/pycqa/flake8
Author: Ian Cordasco
Author-email: graffatcolmingov@gmail.com
License: MIT
......@@ -65,6 +65,28 @@ Description: ======
anything that goes beyond 10 is too complex.
See https://en.wikipedia.org/wiki/Cyclomatic_complexity.
Frequently Asked Questions
==========================
Why does flake8 pin the version of pep8?
----------------------------------------
Version 1.6 of pep8 doesn't work properly with flake8. Until pep8 releases a
version that works, flake8 pins the version of pep8 so that flake8 will work as
a whole.
Is flake8 broken?
-----------------
Flake8 combines two other projects that are significant on their own: pep8 and
PyFlakes. If flake8 is doing something you don't like, it is quite likely that
the problem lies in one of those other projects. You can run them separately
to see if they are the cause of your difficulties. We greatly appreciate your
efforts to diagnose the source of the problem before reporting bugs against
flake8.
Questions or Feedback
=====================
......@@ -86,6 +108,156 @@ Description: ======
CHANGES
=======
2.5.4 - 2016-02-11
------------------
- **Bug** Missed an attribute rename during the v2.5.3 release.
2.5.3 - 2016-02-11
------------------
- **Bug** Actually parse ``output_file`` and ``enable_extensions`` from config
files
2.5.2 - 2016-01-30
------------------
- **Bug** Parse ``output_file`` and ``enable_extensions`` from config files
- **Improvement** Raise upper bound on mccabe plugin to allow for version
0.4.0
2.5.1 - 2015-12-08
------------------
- **Bug** Properly look for ``.flake8`` in current working directory
(`GitLab#103`_)
- **Bug** Monkey-patch ``pep8.stdin_get_value`` to cache the actual value in
stdin. This helps plugins relying on the function when run with
multiprocessing. (`GitLab#105`_, `GitLab#107`_)
.. _GitLab#103: https://gitlab.com/pycqa/flake8/issues/103
.. _GitLab#105: https://gitlab.com/pycqa/flake8/issues/105
.. _GitLab#107: https://gitlab.com/pycqa/flake8/issues/107
2.5.0 - 2015-10-26
------------------
- **Improvement** Raise cap on PyFlakes for Python 3.5 support
- **Improvement** Avoid deprecation warnings when loading extensions
(`GitLab#59`_, `GitLab#90`_)
- **Improvement** Separate logic to enable "off-by-default" extensions
(`GitLab#67`_)
- **Bug** Properly parse options to setuptools Flake8 command (`GitLab!41`_)
- **Bug** Fix exceptions when output on stdout is truncated before Flake8
finishes writing the output (`GitLab#69`_)
- **Bug** Fix error on OS X where Flake8 can no longer acquire or create new
semaphores (`GitLab#74`_)
.. _GitLab!41: https://gitlab.com/pycqa/flake8/merge_requests/41
.. _GitLab#59: https://gitlab.com/pycqa/flake8/issues/59
.. _GitLab#67: https://gitlab.com/pycqa/flake8/issues/67
.. _GitLab#69: https://gitlab.com/pycqa/flake8/issues/69
.. _GitLab#74: https://gitlab.com/pycqa/flake8/issues/74
.. _GitLab#90: https://gitlab.com/pycqa/flake8/issues/90
2.4.1 - 2015-05-18
------------------
- **Bug** Do not raise a ``SystemError`` unless there were errors in the
setuptools command. (`GitLab#39`_, `GitLab!23`_)
- **Bug** Do not verify dependencies of extensions loaded via entry-points.
- **Improvement** Blacklist versions of pep8 we know are broken
.. _GitLab#39: https://gitlab.com/pycqa/flake8/issues/39
.. _GitLab!23: https://gitlab.com/pycqa/flake8/merge_requests/23
2.4.0 - 2015-03-07
------------------
- **Bug** Print filenames when using multiprocessing and ``-q`` option.
(`GitLab#31`_)
- **Bug** Put upper cap on dependencies. The caps for 2.4.0 are:
- ``pep8 < 1.6`` (Related to `GitLab#35`_)
- ``mccabe < 0.4``
- ``pyflakes < 0.9``
See also `GitLab#32`_
- **Bug** Files excluded in a config file were not being excluded when flake8
was run from a git hook. (`GitHub#2`_)
- **Improvement** Print warnings for users who are providing mutually
exclusive options to flake8. (`GitLab#8`_, `GitLab!18`_)
- **Feature** Allow git hook configuration to live in ``.git/config``.
See the updated `VCS hooks docs`_ for more details. (`GitLab!20`_)
.. _GitHub#2: https://github.com/pycqa/flake8/pull/2
.. _GitLab#8: https://gitlab.com/pycqa/flake8/issues/8
.. _GitLab#31: https://gitlab.com/pycqa/flake8/issues/31
.. _GitLab#32: https://gitlab.com/pycqa/flake8/issues/32
.. _GitLab#35: https://gitlab.com/pycqa/flake8/issues/35
.. _GitLab!18: https://gitlab.com/pycqa/flake8/merge_requests/18
.. _GitLab!20: https://gitlab.com/pycqa/flake8/merge_requests/20
.. _VCS hooks docs: https://flake8.readthedocs.org/en/latest/vcs.html
2.3.0 - 2015-01-04
------------------
- **Feature**: Add ``--output-file`` option to specify a file to write to
instead of ``stdout``.
- **Bug** Fix interleaving of output while using multiprocessing
(`GitLab#17`_)
.. _GitLab#17: https://gitlab.com/pycqa/flake8/issues/17
2.2.5 - 2014-10-19
------------------
- Flush standard out when using multiprocessing
- Make the check for "# flake8: noqa" more strict
2.2.4 - 2014-10-09
------------------
- Fix bugs triggered by turning multiprocessing on by default (again)
Multiprocessing is forcibly disabled in the following cases:
- Passing something in via stdin
- Analyzing a diff
- Using windows
- Fix --install-hook when there are no config files present for pep8 or
flake8.
- Fix how the setuptools command parses excludes in config files
- Fix how the git hook determines which files to analyze (Thanks Chris
Buccella!)
2.2.3 - 2014-08-25
------------------
- Actually turn multiprocessing on by default
2.2.2 - 2014-07-04
------------------
......
......@@ -10,10 +10,14 @@ flake8/__init__.pyc
flake8/__main__.py
flake8/_pyflakes.py
flake8/_pyflakes.pyc
flake8/callbacks.py
flake8/callbacks.pyc
flake8/compat.py
flake8/compat.pyc
flake8/engine.py
flake8/engine.py.orig
flake8/engine.pyc
flake8/hooks.py
flake8/hooks.pyc
flake8/main.py
flake8/main.pyc
flake8/reporter.py
......@@ -25,9 +29,43 @@ flake8.egg-info/PKG-INFO
flake8.egg-info/SOURCES.txt
flake8.egg-info/dependency_links.txt
flake8.egg-info/entry_points.txt
flake8.egg-info/pbr.json
flake8.egg-info/requires.txt
flake8.egg-info/top_level.txt
flake8/__pycache__/__init__.cpython-34.pyc
flake8/__pycache__/_pyflakes.cpython-34.pyc
flake8/__pycache__/callbacks.cpython-34.pyc
flake8/__pycache__/compat.cpython-34.pyc
flake8/__pycache__/engine.cpython-34.pyc
flake8/__pycache__/hooks.cpython-34.pyc
flake8/__pycache__/main.cpython-34.pyc
flake8/__pycache__/reporter.cpython-34.pyc
flake8/__pycache__/util.cpython-34.pyc
flake8/tests/__init__.py
flake8/tests/__init__.pyc
flake8/tests/_test_warnings.py
flake8/tests/_test_warnings.pyc
flake8/tests/test_engine.py
flake8/tests/test_engine.pyc
\ No newline at end of file
flake8/tests/test_engine.pyc
flake8/tests/test_git_hook.pyc
flake8/tests/test_hooks.py
flake8/tests/test_hooks.pyc
flake8/tests/test_integration.py
flake8/tests/test_integration.pyc
flake8/tests/test_main.py
flake8/tests/test_main.pyc
flake8/tests/test_pyflakes.py
flake8/tests/test_pyflakes.pyc
flake8/tests/test_reporter.py
flake8/tests/test_reporter.pyc
flake8/tests/test_util.py
flake8/tests/test_util.pyc
flake8/tests/__pycache__/__init__.cpython-34.pyc
flake8/tests/__pycache__/_test_warnings.cpython-34.pyc
flake8/tests/__pycache__/test_engine.cpython-34.pyc
flake8/tests/__pycache__/test_hooks.cpython-34.pyc
flake8/tests/__pycache__/test_integration.cpython-34.pyc
flake8/tests/__pycache__/test_main.cpython-34.pyc
flake8/tests/__pycache__/test_pyflakes.cpython-34.pyc
flake8/tests/__pycache__/test_reporter.cpython-34.pyc
flake8/tests/__pycache__/test_util.cpython-34.pyc
\ No newline at end of file
[flake8.extension]
F = flake8._pyflakes:FlakesChecker
[console_scripts]
flake8 = flake8.main:main
[distutils.commands]
flake8 = flake8.main:Flake8Command
[flake8.extension]
F = flake8._pyflakes:FlakesChecker
{"is_release": false, "git_version": "b827629"}
\ No newline at end of file
pyflakes >= 0.8.1
pep8 >= 1.5.7
mccabe >= 0.2.1
\ No newline at end of file
pyflakes >= 0.8.1, < 1.1
pep8 >= 1.5.7, != 1.6.0, != 1.6.1, != 1.6.2
mccabe >= 0.2.1, < 0.5
__version__ = '2.2.2'
__version__ = '2.5.4'
No preview for this file type
......@@ -6,6 +6,9 @@ except ImportError:
pass
else:
demandimport.disable()
import os
import pep8
import pyflakes
import pyflakes.checker
......@@ -39,8 +42,24 @@ class FlakesChecker(pyflakes.checker.Checker):
version = pyflakes.__version__
def __init__(self, tree, filename):
filename = pep8.normalize_paths(filename)[0]
withDoctest = self.withDoctest
included_by = [include for include in self.include_in_doctest
if include != '' and filename.startswith(include)]
if included_by:
withDoctest = True
for exclude in self.exclude_from_doctest:
if exclude != '' and filename.startswith(exclude):
withDoctest = False
overlaped_by = [include for include in included_by
if include.startswith(exclude)]
if overlaped_by:
withDoctest = True
super(FlakesChecker, self).__init__(tree, filename,
withDoctest=self.withDoctest)
withDoctest=withDoctest)
@classmethod
def add_options(cls, parser):
......@@ -48,7 +67,17 @@ class FlakesChecker(pyflakes.checker.Checker):
help="define more built-ins, comma separated")
parser.add_option('--doctests', default=False, action='store_true',
help="check syntax of the doctests")
parser.config_options.extend(['builtins', 'doctests'])
parser.add_option('--include-in-doctest', default='',
dest='include_in_doctest',
help='Run doctests only on these files',
type='string')
parser.add_option('--exclude-from-doctest', default='',
dest='exclude_from_doctest',
help='Skip these files when running doctests',
type='string')
parser.config_options.extend(['builtins', 'doctests',
'include-in-doctest',
'exclude-from-doctest'])
@classmethod
def parse_options(cls, options):
......@@ -56,6 +85,35 @@ class FlakesChecker(pyflakes.checker.Checker):
cls.builtIns = cls.builtIns.union(options.builtins.split(','))
cls.withDoctest = options.doctests
included_files = []
for included_file in options.include_in_doctest.split(','):
if included_file == '':
continue
if not included_file.startswith((os.sep, './', '~/')):
included_files.append('./' + included_file)
else:
included_files.append(included_file)
cls.include_in_doctest = pep8.normalize_paths(','.join(included_files))
excluded_files = []