commit python-vulture for openSUSE:Factory
Hello community, here is the log from the commit of package python-vulture for openSUSE:Factory checked in at 2020-08-21 19:06:55 Comparing /work/SRC/openSUSE:Factory/python-vulture (Old) and /work/SRC/openSUSE:Factory/.python-vulture.new.3399 (New) Package is "python-vulture" Fri Aug 21 19:06:55 2020 rev:8 rq:828348 version:2.1 Changes: --- /work/SRC/openSUSE:Factory/python-vulture/python-vulture.changes 2020-04-16 23:03:29.639687619 +0200 +++ /work/SRC/openSUSE:Factory/.python-vulture.new.3399/python-vulture.changes 2020-08-21 19:08:10.768498873 +0200 @@ -1,0 +2,23 @@ +Thu Aug 20 21:06:20 UTC 2020 - John Vandenberg + +- Update to v2.1 + * Treat `getattr/hasattr(obj, "constant_string", ...)` as a reference +to `obj.constant_string` + * Fix false positives when assigning to `x.some_name` but reading via +`some_name`, at the cost of potential false negatives + * Allow reading options from `pyproject.toml` +- from v2.0 + * Parse `# type: ...` comments if on Python 3.8+ + * Bump minimum Python version to 3.6. The last Vulture release that +supports Python 2.7 and Python 3.5 is version 1.6. + * Consider all files under `test` or `tests` directories test files + * Ignore `logging.Logger.propagate` attribute +- from v1.6 + * Differentiate between functions and methods + * Move from Travis to GitHub actions +- from v1.5 + * Support flake8 "noqa" error codes F401 (unused import) and F841 +(unused local variable) + * Detect unreachable code in conditional expressions + +--- Old: vulture-1.4.tar.gz New: vulture-2.1.tar.gz Other differences: -- ++ python-vulture.spec ++ --- /var/tmp/diff_new_pack.fAK0hw/_old 2020-08-21 19:08:17.416502823 +0200 +++ /var/tmp/diff_new_pack.fAK0hw/_new 2020-08-21 19:08:17.416502823 +0200 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-vulture -Version:1.4 +Version:2.1 Release:0 Summary:Python module for finding dead code License:MIT @@ -28,11 +28,13 @@ BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires: python-toml Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module pytest > 3.2.3} +BuildRequires: %{python_module toml} # /SECTION %python_subpackages ++ vulture-1.4.tar.gz -> vulture-2.1.tar.gz ++ 3178 lines of diff (skipped)
commit python-vulture for openSUSE:Factory
Hello community, here is the log from the commit of package python-vulture for openSUSE:Factory checked in at 2020-04-16 23:03:27 Comparing /work/SRC/openSUSE:Factory/python-vulture (Old) and /work/SRC/openSUSE:Factory/.python-vulture.new.2738 (New) Package is "python-vulture" Thu Apr 16 23:03:27 2020 rev:7 rq:794478 version:1.4 Changes: --- /work/SRC/openSUSE:Factory/python-vulture/python-vulture.changes 2020-02-07 15:56:39.783581845 +0100 +++ /work/SRC/openSUSE:Factory/.python-vulture.new.2738/python-vulture.changes 2020-04-16 23:03:29.639687619 +0200 @@ -1,0 +2,8 @@ +Thu Apr 16 07:49:11 UTC 2020 - Tomáš Chvátal + +- Update to 1.4: + * Ignore unused import statements in __init__.py (RJ722, #192). + * Report first decorator's line number for unused decorated objects on Python 3.8+ (RJ722, #200). + * Check code with black and pyupgrade. + +--- Old: vulture-1.3.tar.gz New: vulture-1.4.tar.gz Other differences: -- ++ python-vulture.spec ++ --- /var/tmp/diff_new_pack.t5j7o8/_old 2020-04-16 23:03:31.871689607 +0200 +++ /var/tmp/diff_new_pack.t5j7o8/_new 2020-04-16 23:03:31.875689610 +0200 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-vulture -Version:1.3 +Version:1.4 Release:0 Summary:Python module for finding dead code License:MIT @@ -33,7 +33,6 @@ BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module pytest > 3.2.3} -BuildRequires: %{python_module pytest-cov} # /SECTION %python_subpackages @@ -69,7 +68,8 @@ %python_clone -a %{buildroot}%{_bindir}/vulture %check -%python_exec setup.py test +rm setup.cfg +%pytest %post %python_install_alternative vulture @@ -78,7 +78,7 @@ %python_uninstall_alternative vulture %files %{python_files} -%doc NEWS.rst README.rst +%doc CHANGELOG.md README.md %license LICENSE.txt %python_alternative %{_bindir}/vulture %{python_sitelib}/* ++ vulture-1.3.tar.gz -> vulture-1.4.tar.gz ++ 6388 lines of diff (skipped)
commit python-vulture for openSUSE:Factory
Hello community, here is the log from the commit of package python-vulture for openSUSE:Factory checked in at 2020-02-07 15:55:16 Comparing /work/SRC/openSUSE:Factory/python-vulture (Old) and /work/SRC/openSUSE:Factory/.python-vulture.new.26092 (New) Package is "python-vulture" Fri Feb 7 15:55:16 2020 rev:6 rq:770681 version:1.3 Changes: --- /work/SRC/openSUSE:Factory/python-vulture/python-vulture.changes 2019-02-20 14:10:39.790952816 +0100 +++ /work/SRC/openSUSE:Factory/.python-vulture.new.26092/python-vulture.changes 2020-02-07 15:56:39.783581845 +0100 @@ -1,0 +2,15 @@ +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 + +--- Old: vulture-1.0.tar.gz New: vulture-1.3.tar.gz Other differences: -- ++ python-vulture.spec ++ --- /var/tmp/diff_new_pack.oCjARr/_old 2020-02-07 15:56:41.291582614 +0100 +++ /var/tmp/diff_new_pack.oCjARr/_new 2020-02-07 15:56:41.295582616 +0100 @@ -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 ++ vulture-1.0.tar.gz -> vulture-1.3.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vulture-1.0/NEWS.rst new/vulture-1.3/NEWS.rst --- old/vulture-1.0/NEWS.rst2018-10-23 18:27:25.0 +0200 +++ new/vulture-1.3/NEWS.rst2020-02-03 12:00:25.0 +0100 @@ -1,6 +1,28 @@ News +1.3 (2020-02-03) + +* Detect redundant 'if' conditions without 'else' blocks. +* Add whitelist for ``string.Formatter`` (Joseph Bylund, #183). + + +1.2 (2019-11-22) + +* Fix tests for Python 3.8 (#166). +* Use new ``Constant`` AST node under Python 3.8+ (#175). +* Add test for f-strings (#177). +* Add whitelist for ``logging`` module. + + +1.1 (2019-09-23) + +* Add ``sys.excepthook`` to ``sys`` whitelist. +* Add whitelist for ``ctypes`` module. +* Check that type annotations are parsed and type comments are ignored (thanks @kx-chen). +* Support checking files with BOM under Python 2.7 (#170). + + 1.0 (2018-10-23) * Add ``--ignore-decorators`` flag (thanks @RJ722). diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vulture-1.0/PKG-INFO new/vulture-1.3/PKG-INFO --- old/vulture-1.0/PKG-INFO2018-10-23 18:29:40.0 +0200 +++ new/vulture-1.3/PKG-INFO2020-02-03 12:50:15.0 +0100 @@ -1,6 +1,6 @@ -Metadata-Version: 1.1 +Metadata-Version: 1.2 Name: vulture -Version: 1.0 +Version: 1.3 Summary: Find dead code Home-page: https://github.com/jendrikseipp/vulture Author: Jendrik Seipp @@ -37,7 +37,7 @@ * tested: tests itself and has complete test coverage * complements pyflakes and has the same output syntax * sorts unused classes and functions by size with ``--sort-by-size`` -* supports Python 2.7 and Python >= 3.4 +* supports Python 2.7 and Python >= 3.5 Installation @@ -62,6 +62,10 @@ The provided arguments may be Python files or directories. For each directory Vulture analyzes all contained `*.py` files. +Vulture assigns each chunk of dead code a confidence value. A confidence +value of 100% means that the code will never be executed. Values below +100% are only estimates for how likely it is that the code is unused. + After you have found and deleted dead code, run Vulture again, because it may discover more dead code. @@ -209,9 +213,15 @@ Similar programs -* Vulture can be used together with *pyflakes* -* The *coverage* module can find unused code more reliably, but requires -
commit python-vulture for openSUSE:Factory
Hello community, here is the log from the commit of package python-vulture for openSUSE:Factory checked in at 2019-02-20 14:10:37 Comparing /work/SRC/openSUSE:Factory/python-vulture (Old) and /work/SRC/openSUSE:Factory/.python-vulture.new.28833 (New) Package is "python-vulture" Wed Feb 20 14:10:37 2019 rev:5 rq:673195 version:1.0 Changes: --- /work/SRC/openSUSE:Factory/python-vulture/python-vulture.changes 2018-12-24 11:45:58.669208330 +0100 +++ /work/SRC/openSUSE:Factory/.python-vulture.new.28833/python-vulture.changes 2019-02-20 14:10:39.790952816 +0100 @@ -1,0 +2,9 @@ +Mon Feb 11 05:11:25 UTC 2019 - John Vandenberg + +- Update to v1.0 + * Add ``--ignore-decorators` + * Add whitelist for ``threading`` module +- Add test dependency pytest > 3.2.3 due to use of CaptureResult. +- Reduce hack to remove unsuitable hashbangs + +--- Old: vulture-0.29.tar.gz New: vulture-1.0.tar.gz Other differences: -- ++ python-vulture.spec ++ --- /var/tmp/diff_new_pack.LM52On/_old 2019-02-20 14:10:40.422952606 +0100 +++ /var/tmp/diff_new_pack.LM52On/_new 2019-02-20 14:10:40.426952604 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-vulture # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,24 +18,23 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-vulture -Version:0.29 +Version:1.0 Release:0 Summary:Python module for finding dead code License:MIT Group: Development/Languages/Python -Url:https://github.com/jendrikseipp/vulture +URL:https://github.com/jendrikseipp/vulture Source: https://files.pythonhosted.org/packages/source/v/vulture/vulture-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros +Requires(post): update-alternatives +Requires(postun): update-alternatives +BuildArch: noarch # SECTION test requirements +BuildRequires: %{python_module pytest > 3.2.3} BuildRequires: %{python_module pytest-cov} -BuildRequires: %{python_module pytest} # /SECTION -BuildArch: noarch -Requires(post): update-alternatives -Requires(postun): update-alternatives - %python_subpackages %description @@ -56,10 +55,9 @@ * sorts unused classes and functions by size with ``--sort-by-size`` * supports Python 2.6, 2.7 and 3.x - %prep %setup -q -n vulture-%{version} -sed -i -e '/^#! \//, 1d' *.py vulture/core.py +sed -i -e '/^#! \//, 1d' vulture/core.py %build %python_build ++ vulture-0.29.tar.gz -> vulture-1.0.tar.gz ++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vulture-0.29/NEWS.rst new/vulture-1.0/NEWS.rst --- old/vulture-0.29/NEWS.rst 2018-07-31 14:15:44.0 +0200 +++ new/vulture-1.0/NEWS.rst2018-10-23 18:27:25.0 +0200 @@ -1,9 +1,15 @@ News +1.0 (2018-10-23) + +* Add ``--ignore-decorators`` flag (thanks @RJ722). +* Add whitelist for ``threading`` module (thanks @andrewhalle). + + 0.29 (2018-07-31) - -* Add ``--ignore-names`` flag for ignoring names matching the given glob patterns. +* Add ``--ignore-names`` flag for ignoring names matching the given glob patterns (thanks @RJ722). 0.28 (2018-07-05) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/vulture-0.29/PKG-INFO new/vulture-1.0/PKG-INFO --- old/vulture-0.29/PKG-INFO 2018-07-31 14:37:07.0 +0200 +++ new/vulture-1.0/PKG-INFO2018-10-23 18:29:40.0 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 1.1 Name: vulture -Version: 0.29 +Version: 1.0 Summary: Find dead code Home-page: https://github.com/jendrikseipp/vulture Author: Jendrik Seipp @@ -82,13 +82,17 @@ **Ignoring names** You can use ``--ignore-names foo*,ba[rz]`` to let Vulture ignore all names -starting with ``foo`` and the names ``bar`` and ``baz``. - -We recommend using whitelists instead of ``--ignore-names`` whenever -possible, since whitelists are automatically checked for syntactic -correctness when passed to Vulture and sometimes you can even pass -them to your Python interpreter and let it check that all whitelisted -code actually still exists in your project. +starting with ``foo`` and the names ``bar`` and ``baz``. Additionally, the
commit python-vulture for openSUSE:Factory
Hello community, here is the log from the commit of package python-vulture for openSUSE:Factory checked in at 2018-12-24 11:45:58 Comparing /work/SRC/openSUSE:Factory/python-vulture (Old) and /work/SRC/openSUSE:Factory/.python-vulture.new.28833 (New) Package is "python-vulture" Mon Dec 24 11:45:58 2018 rev:4 rq:659748 version:0.29 Changes: --- /work/SRC/openSUSE:Factory/python-vulture/python-vulture.changes 2018-08-24 17:03:07.370001552 +0200 +++ /work/SRC/openSUSE:Factory/.python-vulture.new.28833/python-vulture.changes 2018-12-24 11:45:58.669208330 +0100 @@ -1,0 +2,5 @@ +Tue Dec 4 12:55:52 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +--- Other differences: -- ++ python-vulture.spec ++ --- /var/tmp/diff_new_pack.pvOkC5/_old 2018-12-24 11:45:59.281207792 +0100 +++ /var/tmp/diff_new_pack.pvOkC5/_new 2018-12-24 11:45:59.285207789 +0100 @@ -12,7 +12,7 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ # @@ -25,7 +25,6 @@ Group: Development/Languages/Python Url:https://github.com/jendrikseipp/vulture Source: https://files.pythonhosted.org/packages/source/v/vulture/vulture-%{version}.tar.gz -BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros
commit python-vulture for openSUSE:Factory
Hello community, here is the log from the commit of package python-vulture for openSUSE:Factory checked in at 2018-08-24 17:03:05 Comparing /work/SRC/openSUSE:Factory/python-vulture (Old) and /work/SRC/openSUSE:Factory/.python-vulture.new (New) Package is "python-vulture" Fri Aug 24 17:03:05 2018 rev:3 rq:628654 version:0.29 Changes: --- /work/SRC/openSUSE:Factory/python-vulture/python-vulture.changes 2018-07-31 16:01:07.783722708 +0200 +++ /work/SRC/openSUSE:Factory/.python-vulture.new/python-vulture.changes 2018-08-24 17:03:07.370001552 +0200 @@ -1,0 +2,11 @@ +Fri Aug 10 00:07:30 UTC 2018 - jsi...@suse.de + +- Update to 0.29 + * Check that NEWS file is up-to-date before releasing + * Add --ignore-names flag (#139) + * Add --make-whitelist flag (#135) + * Single-source package version string (#134) + * Use absolute imports (#132) + * Fix PEP8 issues (#120) + +--- Old: vulture-0.26.tar.gz New: vulture-0.29.tar.gz Other differences: -- ++ python-vulture.spec ++ --- /var/tmp/diff_new_pack.G2X9wA/_old 2018-08-24 17:03:08.062002372 +0200 +++ /var/tmp/diff_new_pack.G2X9wA/_new 2018-08-24 17:03:08.066002377 +0200 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-vulture -Version:0.26 +Version:0.29 Release:0 Summary:Python module for finding dead code License:MIT ++ vulture-0.26.tar.gz -> vulture-0.29.tar.gz ++ 1973 lines of diff (skipped)
commit python-vulture for openSUSE:Factory
Hello community, here is the log from the commit of package python-vulture for openSUSE:Factory checked in at 2018-07-31 16:01:07 Comparing /work/SRC/openSUSE:Factory/python-vulture (Old) and /work/SRC/openSUSE:Factory/.python-vulture.new (New) Package is "python-vulture" Tue Jul 31 16:01:07 2018 rev:2 rq:626382 version:0.26 Changes: --- /work/SRC/openSUSE:Factory/python-vulture/python-vulture.changes 2018-06-02 11:59:19.708199965 +0200 +++ /work/SRC/openSUSE:Factory/.python-vulture.new/python-vulture.changes 2018-07-31 16:01:07.783722708 +0200 @@ -1,0 +2,5 @@ +Sun Jul 29 12:14:29 UTC 2018 - jeng...@inai.de + +- Use noun phrase in summary. Trim filler wording from description. + +--- Other differences: -- ++ python-vulture.spec ++ --- /var/tmp/diff_new_pack.30CmjX/_old 2018-07-31 16:01:08.475723884 +0200 +++ /var/tmp/diff_new_pack.30CmjX/_new 2018-07-31 16:01:08.479723891 +0200 @@ -13,24 +13,25 @@ # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-vulture Version:0.26 Release:0 +Summary:Python module for finding dead code License:MIT -Summary:Find dead code -Url:https://github.com/jendrikseipp/vulture Group: Development/Languages/Python +Url:https://github.com/jendrikseipp/vulture Source: https://files.pythonhosted.org/packages/source/v/vulture/vulture-%{version}.tar.gz -BuildRequires: python-rpm-macros BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes +BuildRequires: python-rpm-macros # SECTION test requirements -BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest-cov} +BuildRequires: %{python_module pytest} # /SECTION BuildArch: noarch Requires(post): update-alternatives @@ -39,21 +40,19 @@ %python_subpackages %description - Vulture finds unused code in Python programs. This is useful for -cleaning up and finding errors in large code bases. If you run Vulture -on both your library and test suite you can find untested code. +cleaning up and finding errors in code bases. Running Vulture +on both the library and test suite, untested code can be found. Due to Python's dynamic nature, static code analyzers like Vulture are likely to miss some dead code. Also, code that is only called implicitly -may be reported as unused. Nonetheless, Vulture can be a very helpful -tool for higher code quality. +may be reported as unused. Features: -* fast: static code analysis -* lightweight: only one module -* tested: tests itself and has complete test coverage +* static code analysis +* only one module +* tests itself and has complete test coverage * complements pyflakes and has the same output syntax * sorts unused classes and functions by size with ``--sort-by-size`` * supports Python 2.6, 2.7 and 3.x