From 5665570f1bc5908a636a218d6026241574d654a6f016c90eeb54e2aff4679339 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 6 Feb 2020 18:24:53 +0000 Subject: [PATCH] Accepting request 770671 from home:mcalabkova:branches:devel:languages:python MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - update to 1.3 * Detect redundant ‘if’ conditions without ‘else’ blocks. * Add whitelist for string.Formatter * Fix tests for Python 3.8 * Use new Constant AST node under Python 3.8+ * Add test for f-strings * Add whitelist for logging module. * Add sys.excepthook to sys whitelist. * Add whitelist for ctypes module. * Check that type annotations are parsed and type comments are ignored * Support checking files with BOM under Python 2.7 OBS-URL: https://build.opensuse.org/request/show/770671 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vulture?expand=0&rev=14 --- python-vulture.changes | 15 +++++++++++++++ python-vulture.spec | 4 ++-- vulture-1.0.tar.gz | 3 --- vulture-1.3.tar.gz | 3 +++ 4 files changed, 20 insertions(+), 5 deletions(-) delete mode 100644 vulture-1.0.tar.gz create mode 100644 vulture-1.3.tar.gz diff --git a/python-vulture.changes b/python-vulture.changes index 813ac71..8a1d6a0 100644 --- a/python-vulture.changes +++ b/python-vulture.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Thu Feb 6 17:35:31 UTC 2020 - Marketa Calabkova + +- update to 1.3 + * Detect redundant ‘if’ conditions without ‘else’ blocks. + * Add whitelist for string.Formatter + * Fix tests for Python 3.8 + * Use new Constant AST node under Python 3.8+ + * Add test for f-strings + * Add whitelist for logging module. + * Add sys.excepthook to sys whitelist. + * Add whitelist for ctypes module. + * Check that type annotations are parsed and type comments are ignored + * Support checking files with BOM under Python 2.7 + ------------------------------------------------------------------- Mon Feb 11 05:11:25 UTC 2019 - John Vandenberg diff --git a/python-vulture.spec b/python-vulture.spec index 16ec889..b78722e 100644 --- a/python-vulture.spec +++ b/python-vulture.spec @@ -1,7 +1,7 @@ # # spec file for package python-vulture # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-vulture -Version: 1.0 +Version: 1.3 Release: 0 Summary: Python module for finding dead code License: MIT diff --git a/vulture-1.0.tar.gz b/vulture-1.0.tar.gz deleted file mode 100644 index 7cfd5be..0000000 --- a/vulture-1.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4b5a8980c338e9c068d43e7164555a1e4c9c7d84961ce2bc6f3ed975f6e5bc9d -size 31690 diff --git a/vulture-1.3.tar.gz b/vulture-1.3.tar.gz new file mode 100644 index 0000000..a69b211 --- /dev/null +++ b/vulture-1.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4da42bee8968906fb1f47c64008817515baec8ccff0c31746d1573103a6e920c +size 34936