[Python-modules-commits] [pycodestyle] 01/04: Import pycodestyle_2.2.0.orig.tar.gz

Ondřej Nový onovy at moszumanska.debian.org
Thu Nov 17 13:18:28 UTC 2016


This is an automated email from the git hooks/post-receive script.

onovy pushed a commit to branch master
in repository pycodestyle.

commit 54370e739e21a275ed1c201247011bb7bc526eae
Author: Ondřej Nový <onovy at debian.org>
Date:   Thu Nov 17 14:02:24 2016 +0100

    Import pycodestyle_2.2.0.orig.tar.gz
---
 CHANGES.txt                   | 13 ++++++++++++-
 PKG-INFO                      | 15 +++++++++++++--
 docs/intro.rst                |  2 ++
 pycodestyle.egg-info/PKG-INFO | 15 +++++++++++++--
 pycodestyle.py                |  6 ++++--
 5 files changed, 44 insertions(+), 7 deletions(-)

diff --git a/CHANGES.txt b/CHANGES.txt
index 3eab548..aeb5d63 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,7 +1,18 @@
 Changelog
 =========
 
-2.1.0 (unreleased)
+2.2.0 (2016-11-14)
+------------------
+
+Announcements:
+
+* Added Make target to obtain proper tarball file permissions; #599
+
+Bugs:
+
+* Fixed E305 regression caused by #400; #593
+
+2.1.0 (2016-11-04)
 ------------------
 
 Announcements:
diff --git a/PKG-INFO b/PKG-INFO
index 627b221..baeeeac 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pycodestyle
-Version: 2.1.0
+Version: 2.2.0
 Summary: Python style guide checker
 Home-page: https://pycodestyle.readthedocs.io/
 Author: Ian Lee
@@ -119,7 +119,18 @@ Description: pycodestyle (formerly called pep8) - Python style guide checker
         Changelog
         =========
         
-        2.1.0 (unreleased)
+        2.2.0 (2016-11-14)
+        ------------------
+        
+        Announcements:
+        
+        * Added Make target to obtain proper tarball file permissions; #599
+        
+        Bugs:
+        
+        * Fixed E305 regression caused by #400; #593
+        
+        2.1.0 (2016-11-04)
         ------------------
         
         Announcements:
diff --git a/docs/intro.rst b/docs/intro.rst
index 0f5132b..b1dc689 100644
--- a/docs/intro.rst
+++ b/docs/intro.rst
@@ -324,6 +324,8 @@ This is the current list of error and warning codes:
 +------------+----------------------------------------------------------------------+
 | E305       | expected 2 blank lines after end of function or class                |
 +------------+----------------------------------------------------------------------+
+| E306       | expected 1 blank line before a nested definition                     |
++------------+----------------------------------------------------------------------+
 +------------+----------------------------------------------------------------------+
 | **E4**     | *Import*                                                             |
 +------------+----------------------------------------------------------------------+
diff --git a/pycodestyle.egg-info/PKG-INFO b/pycodestyle.egg-info/PKG-INFO
index 627b221..baeeeac 100644
--- a/pycodestyle.egg-info/PKG-INFO
+++ b/pycodestyle.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: pycodestyle
-Version: 2.1.0
+Version: 2.2.0
 Summary: Python style guide checker
 Home-page: https://pycodestyle.readthedocs.io/
 Author: Ian Lee
@@ -119,7 +119,18 @@ Description: pycodestyle (formerly called pep8) - Python style guide checker
         Changelog
         =========
         
-        2.1.0 (unreleased)
+        2.2.0 (2016-11-14)
+        ------------------
+        
+        Announcements:
+        
+        * Added Make target to obtain proper tarball file permissions; #599
+        
+        Bugs:
+        
+        * Fixed E305 regression caused by #400; #593
+        
+        2.1.0 (2016-11-04)
         ------------------
         
         Announcements:
diff --git a/pycodestyle.py b/pycodestyle.py
index df79877..e308177 100755
--- a/pycodestyle.py
+++ b/pycodestyle.py
@@ -66,7 +66,7 @@ try:
 except ImportError:
     from ConfigParser import RawConfigParser
 
-__version__ = '2.1.0'
+__version__ = '2.2.0'
 
 DEFAULT_EXCLUDE = '.svn,CVS,.bzr,.hg,.git,__pycache__,.tox'
 DEFAULT_IGNORE = 'E121,E123,E126,E226,E24,E704,W503'
@@ -254,6 +254,8 @@ def blank_lines(logical_line, blank_lines, indent_level, line_number,
     Okay: def a():\n    pass\n\n\ndef b():\n    pass
     Okay: def a():\n    pass\n\n\nasync def b():\n    pass
     Okay: def a():\n    pass\n\n\n# Foo\n# Bar\n\ndef b():\n    pass
+    Okay: default = 1\nfoo = 1
+    Okay: classify = 1\nfoo = 1
 
     E301: class Foo:\n    b = 0\n    def bar():\n        pass
     E302: def a():\n    pass\n\ndef b(n):\n    pass
@@ -291,7 +293,7 @@ def blank_lines(logical_line, blank_lines, indent_level, line_number,
         elif blank_before != 2:
             yield 0, "E302 expected 2 blank lines, found %d" % blank_before
     elif (logical_line and not indent_level and blank_before != 2 and
-          previous_unindented_logical_line.startswith(('def', 'class'))):
+          previous_unindented_logical_line.startswith(('def ', 'class '))):
         yield 0, "E305 expected 2 blank lines after " \
             "class or function definition, found %d" % blank_before
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/pycodestyle.git



More information about the Python-modules-commits mailing list