New Upstream Snapshot - flake8-class-newline

Ready changes

Summary

Merged new upstream version: 1.6.0+git20220910.1.68aef2f (was: 1.6.0).

Resulting package

Built on 2023-01-04T20:14 (took 6m20s)

The resulting binary packages can be installed (if you have the apt repository enabled) by running one of:

apt install -t fresh-snapshots python3-flake8-class-newline

Lintian Result

Diff

diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 189635f..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,6 +0,0 @@
-*.egg
-*.egg-info
-*.py[cod]
-.tox
-dist
-build
\ No newline at end of file
diff --git a/CHANGELOG.md b/CHANGELOG.md
deleted file mode 100644
index be94196..0000000
--- a/CHANGELOG.md
+++ /dev/null
@@ -1,22 +0,0 @@
-# 1.5.1
-- Fixed a case where arguments on the newline that started with def (like 'default') where recognised as a method definition.
-
-# 1.5.0
-- PEP8 specifies only methods need a surrounding blank line, therefore class arguments are allowed on the newline.
-
-# 1.4.0
-- Went from physical lines to logical lines, since classes with multiple line base classes do not need to be flagged.
-
-
-# 1.2.1
-- Fixed an issue where the line numbers of one file would bleed into the second file, therefore eventually producing errors on every line
-
-# 1.2.0
-- For simplicity, completely rewrote the line checker into a function
-- Removed the docstrings configuration option previously added in 1.1.0, will add this again in the future.
-
-# 1.1.0
-- Added configuration setting to ignore docstrings on a newline
-
-# 1.0.0
-- Added new line checker
\ No newline at end of file
diff --git a/PKG-INFO b/PKG-INFO
new file mode 100644
index 0000000..e1e729f
--- /dev/null
+++ b/PKG-INFO
@@ -0,0 +1,95 @@
+Metadata-Version: 2.1
+Name: flake8-class-newline
+Version: 1.6.0
+Summary: Flake8 lint for newline after class definitions.
+Home-page: https://github.com/AlexanderVanEck/flake8-class-newline
+Author: Alexander van Eck
+Author-email: alex@x-all.nl
+License: MIT
+Keywords: flake8 lint class new line
+Classifier: Development Status :: 3 - Alpha
+Classifier: Environment :: Console
+Classifier: Intended Audience :: Developers
+Classifier: Operating System :: OS Independent
+Classifier: License :: OSI Approved :: MIT License
+Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 2
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.4
+Classifier: Topic :: Software Development :: Libraries :: Python Modules
+Classifier: Topic :: Software Development :: Quality Assurance
+License-File: LICENSE
+
+Flake8 Extension to lint for a method newline after a Class definition
+===========================================
+
+.. image:: https://travis-ci.org/AlexvEck/flake8-class-newline.svg?branch=master
+    :target: https://travis-ci.org/AlexvEck/flake8-class-newline
+   :alt: Build Status
+
+Usage
+-----
+
+If you are using flake8, you can install this package through pip.
+
+.. code:: shell
+
+    pip install flake8-class-newline
+
+This plugin is then automatically triggered when you run;
+
+.. code:: shell
+
+    flake8
+
+It produces only 1 error type; "CNL100 Class definition does not have a new line."
+
+NOTE; Documentation blocks (or docblocks) should be on the newline, they are therefore ignored by this plugin. See https://www.python.org/dev/peps/pep-0008/#documentation-strings
+
+
+Example
+-----
+
+PEP8 says we should surround every class method with a single blank line. See https://www.python.org/dev/peps/pep-0008/#blank-lines
+However flake8 is ambiguous about the first method having a blank line above it.
+
+Basically;
+
+.. code:: python
+
+    class AClassWithoutANewLine(object):
+        def a_method(self):
+            return 'a_value'
+
+    class AClassWithoutANewLineProperty(object):
+        @property
+        def a_method(self):
+            return 'a_value'
+
+or
+
+.. code:: python
+
+    class AClassWithANewLine(object):
+
+        def a_method(self):
+            return 'a_value'
+
+    class AClassWithANewLineProperty(object):
+
+        @property
+        def a_method(self):
+            return 'a_value'
+
+
+
+This plugin was made to enforce the latter.
+
+NOTE: properties of a class do not need a surrounding blank line, only methods.
+
+Special Notice
+-----
+
+This package was inspired by flake8-quotes created by @zheller.
+Thanks for the inspiration!
diff --git a/README.rst b/README.rst
index 3006099..7f04ca0 100644
--- a/README.rst
+++ b/README.rst
@@ -63,7 +63,7 @@ or
 
 This plugin was made to enforce the latter.
 
-NOTE; properties of a class do not need a surrounding blank line, only methods.
+NOTE: properties of a class do not need a surrounding blank line, only methods.
 
 Special Notice
 -----
diff --git a/debian/changelog b/debian/changelog
index 975d4f4..9ccdef1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+flake8-class-newline (1.6.0+git20220910.1.68aef2f-1) UNRELEASED; urgency=low
+
+  * New upstream snapshot.
+
+ -- Debian Janitor <janitor@jelmer.uk>  Wed, 04 Jan 2023 20:10:18 -0000
+
 flake8-class-newline (1.6.0-5) unstable; urgency=medium
 
   [ Debian Janitor ]
diff --git a/flake8_class_newline.egg-info/PKG-INFO b/flake8_class_newline.egg-info/PKG-INFO
new file mode 100644
index 0000000..e1e729f
--- /dev/null
+++ b/flake8_class_newline.egg-info/PKG-INFO
@@ -0,0 +1,95 @@
+Metadata-Version: 2.1
+Name: flake8-class-newline
+Version: 1.6.0
+Summary: Flake8 lint for newline after class definitions.
+Home-page: https://github.com/AlexanderVanEck/flake8-class-newline
+Author: Alexander van Eck
+Author-email: alex@x-all.nl
+License: MIT
+Keywords: flake8 lint class new line
+Classifier: Development Status :: 3 - Alpha
+Classifier: Environment :: Console
+Classifier: Intended Audience :: Developers
+Classifier: Operating System :: OS Independent
+Classifier: License :: OSI Approved :: MIT License
+Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 2
+Classifier: Programming Language :: Python :: 2.7
+Classifier: Programming Language :: Python :: 3
+Classifier: Programming Language :: Python :: 3.4
+Classifier: Topic :: Software Development :: Libraries :: Python Modules
+Classifier: Topic :: Software Development :: Quality Assurance
+License-File: LICENSE
+
+Flake8 Extension to lint for a method newline after a Class definition
+===========================================
+
+.. image:: https://travis-ci.org/AlexvEck/flake8-class-newline.svg?branch=master
+    :target: https://travis-ci.org/AlexvEck/flake8-class-newline
+   :alt: Build Status
+
+Usage
+-----
+
+If you are using flake8, you can install this package through pip.
+
+.. code:: shell
+
+    pip install flake8-class-newline
+
+This plugin is then automatically triggered when you run;
+
+.. code:: shell
+
+    flake8
+
+It produces only 1 error type; "CNL100 Class definition does not have a new line."
+
+NOTE; Documentation blocks (or docblocks) should be on the newline, they are therefore ignored by this plugin. See https://www.python.org/dev/peps/pep-0008/#documentation-strings
+
+
+Example
+-----
+
+PEP8 says we should surround every class method with a single blank line. See https://www.python.org/dev/peps/pep-0008/#blank-lines
+However flake8 is ambiguous about the first method having a blank line above it.
+
+Basically;
+
+.. code:: python
+
+    class AClassWithoutANewLine(object):
+        def a_method(self):
+            return 'a_value'
+
+    class AClassWithoutANewLineProperty(object):
+        @property
+        def a_method(self):
+            return 'a_value'
+
+or
+
+.. code:: python
+
+    class AClassWithANewLine(object):
+
+        def a_method(self):
+            return 'a_value'
+
+    class AClassWithANewLineProperty(object):
+
+        @property
+        def a_method(self):
+            return 'a_value'
+
+
+
+This plugin was made to enforce the latter.
+
+NOTE: properties of a class do not need a surrounding blank line, only methods.
+
+Special Notice
+-----
+
+This package was inspired by flake8-quotes created by @zheller.
+Thanks for the inspiration!
diff --git a/flake8_class_newline.egg-info/SOURCES.txt b/flake8_class_newline.egg-info/SOURCES.txt
new file mode 100644
index 0000000..6e53187
--- /dev/null
+++ b/flake8_class_newline.egg-info/SOURCES.txt
@@ -0,0 +1,16 @@
+LICENSE
+MANIFEST.in
+README.rst
+setup.cfg
+setup.py
+flake8_class_newline/__init__.py
+flake8_class_newline/__version__.py
+flake8_class_newline.egg-info/PKG-INFO
+flake8_class_newline.egg-info/SOURCES.txt
+flake8_class_newline.egg-info/dependency_links.txt
+flake8_class_newline.egg-info/entry_points.txt
+flake8_class_newline.egg-info/requires.txt
+flake8_class_newline.egg-info/top_level.txt
+flake8_class_newline.egg-info/zip-safe
+tests/__init__.py
+tests/test_checks.py
\ No newline at end of file
diff --git a/flake8_class_newline.egg-info/dependency_links.txt b/flake8_class_newline.egg-info/dependency_links.txt
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/flake8_class_newline.egg-info/dependency_links.txt
@@ -0,0 +1 @@
+
diff --git a/flake8_class_newline.egg-info/entry_points.txt b/flake8_class_newline.egg-info/entry_points.txt
new file mode 100644
index 0000000..675979a
--- /dev/null
+++ b/flake8_class_newline.egg-info/entry_points.txt
@@ -0,0 +1,2 @@
+[flake8.extension]
+CNL100 = flake8_class_newline:new_line_checker
diff --git a/flake8_class_newline.egg-info/requires.txt b/flake8_class_newline.egg-info/requires.txt
new file mode 100644
index 0000000..3930480
--- /dev/null
+++ b/flake8_class_newline.egg-info/requires.txt
@@ -0,0 +1 @@
+flake8
diff --git a/flake8_class_newline.egg-info/top_level.txt b/flake8_class_newline.egg-info/top_level.txt
new file mode 100644
index 0000000..1cd8745
--- /dev/null
+++ b/flake8_class_newline.egg-info/top_level.txt
@@ -0,0 +1 @@
+flake8_class_newline
diff --git a/flake8_class_newline.egg-info/zip-safe b/flake8_class_newline.egg-info/zip-safe
new file mode 100644
index 0000000..8b13789
--- /dev/null
+++ b/flake8_class_newline.egg-info/zip-safe
@@ -0,0 +1 @@
+
diff --git a/release.sh b/release.sh
deleted file mode 100644
index 17af8e1..0000000
--- a/release.sh
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/env bash
-# Exit on first error
-set -e
-
-# Parse our CLI arguments
-version_number="$1"
-if test "$version_number" = ""; then
-  echo "Expected a version to be provided to \`release.sh\` but none was provided." 1>&2
-  echo "Usage: $0 [version] # (e.g. $0 1.0.0)" 1>&2
-  exit 1
-fi
-
-# Bump the version
-echo "__version__ = '$version_number'" > flake8_class_newline/__version__.py
-
-# Verify our version made it into the file
-if ! grep "$version_number" flake8_class_newline/__version__.py &> /dev/null; then
-  echo "Expected \`__version__\` to update via \`sed\` but it didn't" 1>&2
-  exit 1
-fi
-
-# Commit the change
-git add flake8_class_newline/__version__.py
-git commit -a -m "Release $version_number"
-
-# Tag the release
-git tag "$version_number"
-
-# Publish the release to GitHub
-git push
-git push --tags
diff --git a/requirements-dev.txt b/requirements-dev.txt
deleted file mode 100644
index 93ca65e..0000000
--- a/requirements-dev.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-flake8<3.4.0,>=3.3.0
-tox<2.4.0,>=2.3.1
\ No newline at end of file
diff --git a/setup.cfg b/setup.cfg
index 4b78b77..91b2716 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,5 +1,8 @@
 [flake8]
 max-line-length = 80
-# Force jobs to 1 as a workaround to avoid the PicklingError in Flake8 3.x
-# see https://gitlab.com/pycqa/flake8/issues/164
-jobs=1
\ No newline at end of file
+jobs = 1
+
+[egg_info]
+tag_build = 
+tag_date = 0
+
diff --git a/test.sh b/test.sh
deleted file mode 100644
index d0570ea..0000000
--- a/test.sh
+++ /dev/null
@@ -1,8 +0,0 @@
-#!/usr/bin/env bash
-# Exit on first error and echo commands
-set -e
-set -x
-
-# Run our linter and tests
-flake8 *.py tests/*.py
-python setup.py test $*
\ No newline at end of file
diff --git a/tox.ini b/tox.ini
deleted file mode 100644
index 80bbda4..0000000
--- a/tox.ini
+++ /dev/null
@@ -1,17 +0,0 @@
-[tox]
-envlist =
-    py27
-    py35
-
-[testenv]
-usedevelop = true
-deps = -rrequirements-dev.txt
-commands = sh test.sh
-
-# Add environment to use the default python3 installation
-[testenv:py35]
-deps = flake8==3
-basepython = python3
-
-[testenv:py27]
-basepython = python
\ No newline at end of file

Debdiff

[The following lists of changes regard files as different if they have different names, permissions or owners.]

Files in first set of .debs but not in second

-rw-r--r--  root/root   /usr/share/doc/python3-flake8-class-newline/changelog.gz

No differences were encountered in the control files

More details

Full run details