[Python-modules-commits] [python-flake8] 01/02: Import python-flake8_2.5.4.orig.tar.gz
Ondřej Nový
onovy-guest at moszumanska.debian.org
Fri Mar 4 13:26:21 UTC 2016
This is an automated email from the git hooks/post-receive script.
onovy-guest pushed a commit to branch master
in repository python-flake8.
commit 5a9c8328c6584d2a2b1b0f34b1150711b716189e
Author: Ondřej Nový <novy at ondrej.org>
Date: Fri Mar 4 14:22:54 2016 +0100
Import python-flake8_2.5.4.orig.tar.gz
---
CHANGES.rst | 150 ++++++++++
CONTRIBUTORS.txt | 6 +-
PKG-INFO | 176 +++++++++++-
README.rst | 22 ++
flake8.egg-info/PKG-INFO | 176 +++++++++++-
flake8.egg-info/SOURCES.txt | 42 ++-
flake8.egg-info/entry_points.txt | 6 +-
flake8.egg-info/pbr.json | 1 +
flake8.egg-info/requires.txt | 6 +-
flake8/__init__.py | 2 +-
flake8/__init__.pyc | Bin 139 -> 167 bytes
flake8/__pycache__/__init__.cpython-34.pyc | Bin 0 -> 154 bytes
flake8/__pycache__/_pyflakes.cpython-34.pyc | Bin 0 -> 4332 bytes
flake8/__pycache__/callbacks.cpython-34.pyc | Bin 0 -> 769 bytes
flake8/__pycache__/compat.cpython-34.pyc | Bin 0 -> 558 bytes
flake8/__pycache__/engine.cpython-34.pyc | Bin 0 -> 9959 bytes
flake8/__pycache__/hooks.cpython-34.pyc | Bin 0 -> 8223 bytes
flake8/__pycache__/main.cpython-34.pyc | Bin 0 -> 4568 bytes
flake8/__pycache__/reporter.cpython-34.pyc | Bin 0 -> 4552 bytes
flake8/__pycache__/util.cpython-34.pyc | Bin 0 -> 2513 bytes
flake8/_pyflakes.py | 62 ++++-
flake8/_pyflakes.pyc | Bin 3015 -> 4822 bytes
flake8/callbacks.py | 27 ++
flake8/callbacks.pyc | Bin 0 -> 985 bytes
flake8/compat.py | 12 +
flake8/compat.pyc | Bin 0 -> 647 bytes
flake8/engine.py | 241 ++++++++++++++--
flake8/engine.py.orig | 119 --------
flake8/engine.pyc | Bin 4531 -> 11275 bytes
flake8/hooks.py | 123 +++++---
flake8/hooks.pyc | Bin 0 -> 9208 bytes
flake8/main.py | 18 +-
flake8/main.pyc | Bin 4764 -> 5229 bytes
flake8/reporter.py | 104 ++++++-
flake8/reporter.pyc | Bin 2446 -> 5237 bytes
flake8/tests/__init__.pyc | Bin 142 -> 141 bytes
flake8/tests/__pycache__/__init__.cpython-34.pyc | Bin 0 -> 137 bytes
.../__pycache__/_test_warnings.cpython-34.pyc | Bin 0 -> 6709 bytes
.../tests/__pycache__/test_engine.cpython-34.pyc | Bin 0 -> 10281 bytes
flake8/tests/__pycache__/test_hooks.cpython-34.pyc | Bin 0 -> 2066 bytes
.../__pycache__/test_integration.cpython-34.pyc | Bin 0 -> 3213 bytes
flake8/tests/__pycache__/test_main.cpython-34.pyc | Bin 0 -> 776 bytes
.../tests/__pycache__/test_pyflakes.cpython-34.pyc | Bin 0 -> 3477 bytes
.../tests/__pycache__/test_reporter.cpython-34.pyc | Bin 0 -> 1956 bytes
flake8/tests/__pycache__/test_util.cpython-34.pyc | Bin 0 -> 3642 bytes
flake8/tests/_test_warnings.py | 309 +++++++++++++++++++++
flake8/tests/_test_warnings.pyc | Bin 0 -> 7068 bytes
flake8/tests/test_engine.py | 171 +++++++++++-
flake8/tests/test_engine.pyc | Bin 4103 -> 11801 bytes
flake8/tests/test_git_hook.pyc | Bin 0 -> 4300 bytes
flake8/tests/test_hooks.py | 59 ++++
flake8/tests/test_hooks.pyc | Bin 0 -> 2379 bytes
flake8/tests/test_integration.py | 79 ++++++
flake8/tests/test_integration.pyc | Bin 0 -> 3867 bytes
flake8/tests/test_main.py | 18 ++
flake8/tests/test_main.pyc | Bin 0 -> 899 bytes
flake8/tests/test_pyflakes.py | 73 +++++
flake8/tests/test_pyflakes.pyc | Bin 0 -> 3861 bytes
flake8/tests/test_reporter.py | 36 +++
flake8/tests/test_reporter.pyc | Bin 0 -> 2184 bytes
flake8/tests/test_util.py | 86 ++++++
flake8/tests/test_util.pyc | Bin 0 -> 4117 bytes
flake8/util.py | 35 ++-
flake8/util.pyc | Bin 1945 -> 3005 bytes
setup.cfg | 4 +-
setup.py | 22 +-
66 files changed, 1954 insertions(+), 231 deletions(-)
diff --git a/CHANGES.rst b/CHANGES.rst
index b831dba..47ef27f 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -1,6 +1,156 @@
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
------------------
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt
index ad54a21..e64c332 100644
--- a/CONTRIBUTORS.txt
+++ b/CONTRIBUTORS.txt
@@ -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
diff --git a/PKG-INFO b/PKG-INFO
index 6a33347..92cfc33 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,8 +1,8 @@
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 at 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
------------------
diff --git a/README.rst b/README.rst
index ca691dd..90a356d 100644
--- a/README.rst
+++ b/README.rst
@@ -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
=====================
diff --git a/flake8.egg-info/PKG-INFO b/flake8.egg-info/PKG-INFO
index 6a33347..92cfc33 100644
--- a/flake8.egg-info/PKG-INFO
+++ b/flake8.egg-info/PKG-INFO
@@ -1,8 +1,8 @@
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 at 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
------------------
diff --git a/flake8.egg-info/SOURCES.txt b/flake8.egg-info/SOURCES.txt
index 046055f..9f54420 100644
--- a/flake8.egg-info/SOURCES.txt
+++ b/flake8.egg-info/SOURCES.txt
@@ -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
diff --git a/flake8.egg-info/entry_points.txt b/flake8.egg-info/entry_points.txt
index f856779..3ad195b 100644
--- a/flake8.egg-info/entry_points.txt
+++ b/flake8.egg-info/entry_points.txt
@@ -1,9 +1,9 @@
-[flake8.extension]
-F = flake8._pyflakes:FlakesChecker
-
[console_scripts]
flake8 = flake8.main:main
[distutils.commands]
flake8 = flake8.main:Flake8Command
+[flake8.extension]
+F = flake8._pyflakes:FlakesChecker
+
diff --git a/flake8.egg-info/pbr.json b/flake8.egg-info/pbr.json
new file mode 100644
index 0000000..c5aa0cf
--- /dev/null
+++ b/flake8.egg-info/pbr.json
@@ -0,0 +1 @@
+{"is_release": false, "git_version": "b827629"}
\ No newline at end of file
diff --git a/flake8.egg-info/requires.txt b/flake8.egg-info/requires.txt
index 243e24c..766bfe7 100644
--- a/flake8.egg-info/requires.txt
+++ b/flake8.egg-info/requires.txt
@@ -1,3 +1,3 @@
-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
diff --git a/flake8/__init__.py b/flake8/__init__.py
index f1edb19..36dc058 100644
--- a/flake8/__init__.py
+++ b/flake8/__init__.py
@@ -1 +1 @@
-__version__ = '2.2.2'
+__version__ = '2.5.4'
diff --git a/flake8/__init__.pyc b/flake8/__init__.pyc
index ef28d33..c18b1ab 100644
Binary files a/flake8/__init__.pyc and b/flake8/__init__.pyc differ
diff --git a/flake8/__pycache__/__init__.cpython-34.pyc b/flake8/__pycache__/__init__.cpython-34.pyc
new file mode 100644
index 0000000..72cc45e
Binary files /dev/null and b/flake8/__pycache__/__init__.cpython-34.pyc differ
diff --git a/flake8/__pycache__/_pyflakes.cpython-34.pyc b/flake8/__pycache__/_pyflakes.cpython-34.pyc
new file mode 100644
index 0000000..4090a01
Binary files /dev/null and b/flake8/__pycache__/_pyflakes.cpython-34.pyc differ
diff --git a/flake8/__pycache__/callbacks.cpython-34.pyc b/flake8/__pycache__/callbacks.cpython-34.pyc
new file mode 100644
index 0000000..f5d7222
Binary files /dev/null and b/flake8/__pycache__/callbacks.cpython-34.pyc differ
diff --git a/flake8/__pycache__/compat.cpython-34.pyc b/flake8/__pycache__/compat.cpython-34.pyc
new file mode 100644
index 0000000..e4ad3f7
Binary files /dev/null and b/flake8/__pycache__/compat.cpython-34.pyc differ
diff --git a/flake8/__pycache__/engine.cpython-34.pyc b/flake8/__pycache__/engine.cpython-34.pyc
new file mode 100644
index 0000000..360c4e0
Binary files /dev/null and b/flake8/__pycache__/engine.cpython-34.pyc differ
diff --git a/flake8/__pycache__/hooks.cpython-34.pyc b/flake8/__pycache__/hooks.cpython-34.pyc
new file mode 100644
index 0000000..2f3425c
Binary files /dev/null and b/flake8/__pycache__/hooks.cpython-34.pyc differ
diff --git a/flake8/__pycache__/main.cpython-34.pyc b/flake8/__pycache__/main.cpython-34.pyc
new file mode 100644
index 0000000..5d68ae4
Binary files /dev/null and b/flake8/__pycache__/main.cpython-34.pyc differ
diff --git a/flake8/__pycache__/reporter.cpython-34.pyc b/flake8/__pycache__/reporter.cpython-34.pyc
new file mode 100644
index 0000000..f7ce746
Binary files /dev/null and b/flake8/__pycache__/reporter.cpython-34.pyc differ
diff --git a/flake8/__pycache__/util.cpython-34.pyc b/flake8/__pycache__/util.cpython-34.pyc
new file mode 100644
index 0000000..d7b67c0
Binary files /dev/null and b/flake8/__pycache__/util.cpython-34.pyc differ
diff --git a/flake8/_pyflakes.py b/flake8/_pyflakes.py
index 12a8344..976b2ab 100644
--- a/flake8/_pyflakes.py
+++ b/flake8/_pyflakes.py
@@ -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 = []
+ for excluded_file in options.exclude_from_doctest.split(','):
+ if excluded_file == '':
+ continue
+ if not excluded_file.startswith((os.sep, './', '~/')):
+ excluded_files.append('./' + excluded_file)
+ else:
+ excluded_files.append(excluded_file)
+ cls.exclude_from_doctest = pep8.normalize_paths(
+ ','.join(excluded_files))
+
+ inc_exc = set(cls.include_in_doctest).intersection(
+ set(cls.exclude_from_doctest))
+ if inc_exc:
+ raise ValueError('"%s" was specified in both the '
+ 'include-in-doctest and exclude-from-doctest '
+ 'options. You are not allowed to specify it in '
+ 'both for doctesting.' % inc_exc)
+
def run(self):
for m in self.messages:
col = getattr(m, 'col', 0)
diff --git a/flake8/_pyflakes.pyc b/flake8/_pyflakes.pyc
index d0abc90..dd11a9b 100644
Binary files a/flake8/_pyflakes.pyc and b/flake8/_pyflakes.pyc differ
diff --git a/flake8/callbacks.py b/flake8/callbacks.py
new file mode 100644
index 0000000..3767f30
--- /dev/null
+++ b/flake8/callbacks.py
@@ -0,0 +1,27 @@
+import atexit
+import sys
+
+
+def install_vcs_hook(option, option_str, value, parser):
+ # For now, there's no way to affect a change in how pep8 processes
+ # options. If no args are provided and there's no config file present,
+ # it will error out because no input was provided. To get around this,
+ # when we're using --install-hook, we'll say that there were arguments so
+ # we can actually attempt to install the hook.
+ # See: https://gitlab.com/pycqa/flake8/issues/2 and
+ # https://github.com/jcrocholl/pep8/blob/4c5bf00cb613be617c7f48d3b2b82a1c7b895ac1/pep8.py#L1912
+ # for more context.
+ parser.values.install_hook = True
+ parser.rargs.append('.')
+
+
+def restore_stdout(old_stdout):
+ sys.stdout.close()
+ sys.stdout = old_stdout
+
+
+def redirect_stdout(option, option_str, value, parser):
+ fd = open(value, 'w')
+ old_stdout, sys.stdout = sys.stdout, fd
+
+ atexit.register(restore_stdout, old_stdout)
diff --git a/flake8/callbacks.pyc b/flake8/callbacks.pyc
new file mode 100644
index 0000000..b62c8ec
Binary files /dev/null and b/flake8/callbacks.pyc differ
diff --git a/flake8/compat.py b/flake8/compat.py
new file mode 100644
index 0000000..9bd00a7
--- /dev/null
+++ b/flake8/compat.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+"""Compatibility shims for Flake8."""
+import os.path
+import sys
+
+
+def relpath(path, start='.'):
+ """Wallpaper over the differences between 2.6 and newer versions."""
+ if sys.version_info < (2, 7) and path.startswith(start):
+ return path[len(start):]
+ else:
+ return os.path.relpath(path, start=start)
diff --git a/flake8/compat.pyc b/flake8/compat.pyc
new file mode 100644
index 0000000..62a2e2d
Binary files /dev/null and b/flake8/compat.pyc differ
diff --git a/flake8/engine.py b/flake8/engine.py
index f3314e5..816f1ee 100644
--- a/flake8/engine.py
+++ b/flake8/engine.py
@@ -1,44 +1,78 @@
# -*- coding: utf-8 -*-
-import re
+import errno
... 1994 lines suppressed ...
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-flake8.git
More information about the Python-modules-commits
mailing list