1
0

- update 6.1.1:

* Split ``--source`` by lines instead of by characters (#536).
  * Enable full toml configuration and pyproject.toml (#534).
  * Support for Python 3.5 has been dropped (#510).
  * Add flag to disable `# noqa` comment processing in API (#485).
  * Methods, Functions and Nested functions that have a docstring now throw D418 (#511).
  * Methods decorated with @overload no longer reported as D102 (#511).
  * Functions and nested functions decorated with @overload no longer reported as D103 (#511).
  * Treat "package" as an imperative verb for D401 (#356).
  * Fix the parsing of decorated one line functions (#499).
  * Methods, Functions and Nested functions that have a docstring now throw D418 (#511).
  * Methods decorated with @overload no longer reported as D102.
  * Functions and nested functions decorated with @overload no longer reported as D103.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pydocstyle?expand=0&rev=21
This commit is contained in:
2022-03-26 18:59:42 +00:00
committed by Git OBS Bridge
parent 42d86c1ba4
commit 3bcceb882f
5 changed files with 28 additions and 20 deletions

View File

@@ -10,11 +10,11 @@ Closes https://github.com/PyCQA/pydocstyle/issues/177
src/tests/test_integration.py | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/tests/test_integration.py b/src/tests/test_integration.py
index d4ee72b..1f9507f 100644
--- a/src/tests/test_integration.py
+++ b/src/tests/test_integration.py
@@ -81,9 +81,10 @@ def invoke(self, args="", target=None):
Index: pydocstyle-6.1.1/src/tests/test_integration.py
===================================================================
--- pydocstyle-6.1.1.orig/src/tests/test_integration.py
+++ pydocstyle-6.1.1/src/tests/test_integration.py
@@ -99,9 +99,10 @@ class SandboxEnv:
run_target = self.tempdir if target is None else \
os.path.join(self.tempdir, target)
@@ -28,12 +28,3 @@ index d4ee72b..1f9507f 100644
p = subprocess.Popen(cmd,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
@@ -201,7 +202,7 @@ def test_run_as_named_module():
"""
# Add --match='' so that no files are actually checked (to make sure that
# the return code is 0 and to reduce execution time).
- cmd = shlex.split("python -m pydocstyle --match=''")
+ cmd = shlex.split("\"{}\" -m pydocstyle --match=''".format(sys.executable))
p = subprocess.Popen(cmd,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:904bce3084dc4cb2f3802d1795f3fa8aa1e01e83823e117e44c6a93c4aa60a17
size 70759

3
pydocstyle-6.1.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0ec238b731737da7c9ce3f7c135ee35b992b76a8bfa896007b90bf69a112927c
size 73982

View File

@@ -1,3 +1,20 @@
-------------------------------------------------------------------
Sat Mar 26 18:56:53 UTC 2022 - Dirk Müller <dmueller@suse.com>
- update 6.1.1:
* Split ``--source`` by lines instead of by characters (#536).
* Enable full toml configuration and pyproject.toml (#534).
* Support for Python 3.5 has been dropped (#510).
* Add flag to disable `# noqa` comment processing in API (#485).
* Methods, Functions and Nested functions that have a docstring now throw D418 (#511).
* Methods decorated with @overload no longer reported as D102 (#511).
* Functions and nested functions decorated with @overload no longer reported as D103 (#511).
* Treat "package" as an imperative verb for D401 (#356).
* Fix the parsing of decorated one line functions (#499).
* Methods, Functions and Nested functions that have a docstring now throw D418 (#511).
* Methods decorated with @overload no longer reported as D102.
* Functions and nested functions decorated with @overload no longer reported as D103.
-------------------------------------------------------------------
Sat Oct 10 18:42:12 UTC 2020 - Arun Persaud <arun@gmx.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pydocstyle
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: python-pydocstyle
Version: 5.1.1
Version: 6.1.1
Release: 0
Summary: Python docstring style checker
License: MIT
@@ -43,7 +43,7 @@ BuildRequires: python-rpm-macros
Requires: python-six > 1.10.0
Requires: python-snowballstemmer
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires(postun):update-alternatives
Provides: python-pep257 = %{version}
Obsoletes: python-pep257 < %{version}
BuildArch: noarch