From 17c61431f70a31c6278dc1942157d48705bc47b7082aa0bd3d20809a8b8ff76a Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 8 May 2023 15:45:01 +0000 Subject: [PATCH] - update to 2.17.4: * Fix a false positive for ``bad-dunder-name`` when there is a user-defined ``__index__`` method. * ``pyreverse``: added escaping of vertical bar character in annotation labels * produced by DOT printer to ensure it is not treated as field separator of record-based nodes. * Fixed a crash when generating a configuration file: * ``tomlkit.exceptions.TOMLKitError: Can't add a table to a dotted key`` caused by tomlkit ``v0.11.8``. - update to 2.17.3: * Fix `unused-argument` false positive when `__new__` does not use all the arguments of `__init__`. * Fix ``unused-import`` false positive for usage of ``six.with_metaclass``. * `logging-not-lazy` is not longer emitted for explicitly concatenated string arguments. * Fix false positive for isinstance-second-argument-not-valid- type when union types contains None. * Fixed `unused-import` so that it observes the `dummy- variables-rgx` option. * `Union` typed variables without assignment are no longer treated as `TypeAlias`. * Fix false positive for ``positional-only-arguments-expected`` when a function contains both a positional-only parameter that has a default value, and ``**kwargs``. * Fix false positive for ``keyword-arg-before-vararg`` when a positional-only parameter with a default value precedes ``*args``. * Improve output of ``consider-using-generator`` message for OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=146 --- pylint-2.17.2-gh.tar.gz | 3 --- pylint-2.17.4-gh.tar.gz | 3 +++ python-pylint.changes | 38 ++++++++++++++++++++++++++++++++++++++ python-pylint.spec | 8 ++++---- 4 files changed, 45 insertions(+), 7 deletions(-) delete mode 100644 pylint-2.17.2-gh.tar.gz create mode 100644 pylint-2.17.4-gh.tar.gz diff --git a/pylint-2.17.2-gh.tar.gz b/pylint-2.17.2-gh.tar.gz deleted file mode 100644 index 2c80c4a..0000000 --- a/pylint-2.17.2-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4e1052a2cf2d9c3098382e395519abaa3ebec8d5b749cad8d249cccb799adb05 -size 1408818 diff --git a/pylint-2.17.4-gh.tar.gz b/pylint-2.17.4-gh.tar.gz new file mode 100644 index 0000000..3aa182b --- /dev/null +++ b/pylint-2.17.4-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4be4ce65a5ab900fec8a6f38670e84c9720cb1b611991845c2c5ff136afb794 +size 1411540 diff --git a/python-pylint.changes b/python-pylint.changes index 2332db0..3cbb0c0 100644 --- a/python-pylint.changes +++ b/python-pylint.changes @@ -1,8 +1,46 @@ +------------------------------------------------------------------- +Mon May 8 15:31:49 UTC 2023 - Dirk Müller + +- update to 2.17.4: + * Fix a false positive for ``bad-dunder-name`` when there is a + user-defined ``__index__`` method. + * ``pyreverse``: added escaping of vertical bar character in + annotation labels + * produced by DOT printer to ensure it is not treated as field + separator of record-based nodes. + * Fixed a crash when generating a configuration file: + * ``tomlkit.exceptions.TOMLKitError: Can't add a table to a + dotted key`` caused by tomlkit ``v0.11.8``. + ------------------------------------------------------------------- Mon May 8 13:57:50 UTC 2023 - Johannes Kastl - add sle15_python_module_pythons +------------------------------------------------------------------- +Thu May 4 19:37:21 UTC 2023 - Dirk Müller + +- update to 2.17.3: + * Fix `unused-argument` false positive when `__new__` does not + use all the arguments of `__init__`. + * Fix ``unused-import`` false positive for usage of + ``six.with_metaclass``. + * `logging-not-lazy` is not longer emitted for explicitly + concatenated string arguments. + * Fix false positive for isinstance-second-argument-not-valid- + type when union types contains None. + * Fixed `unused-import` so that it observes the `dummy- + variables-rgx` option. + * `Union` typed variables without assignment are no longer + treated as `TypeAlias`. + * Fix false positive for ``positional-only-arguments-expected`` + when a function contains both a positional-only parameter + that has a default value, and ``**kwargs``. + * Fix false positive for ``keyword-arg-before-vararg`` when a + positional-only parameter with a default value precedes ``*args``. + * Improve output of ``consider-using-generator`` message for + ``min()` calls with ``default`` keyword. + ------------------------------------------------------------------- Mon Apr 17 19:33:08 UTC 2023 - Dirk Müller diff --git a/python-pylint.spec b/python-pylint.spec index 71990a7..9681502 100644 --- a/python-pylint.spec +++ b/python-pylint.spec @@ -19,7 +19,7 @@ %{?sle15_python_module_pythons} %bcond_without tests Name: python-pylint -Version: 2.17.2 +Version: 2.17.4 Release: 0 Summary: Syntax and style checker for Python code License: GPL-2.0-or-later @@ -36,7 +36,7 @@ BuildRequires: python-rpm-macros Requires: python-dill >= 0.3.6 Requires: python-platformdirs >= 2.2 Requires: python-tomlkit >= 0.10.1 -Requires: (python-astroid >= 2.15.2 with python-astroid < 2.17.0~dev0) +Requires: (python-astroid >= 2.15.4 with python-astroid < 2.17.0~dev0) Requires: (python-isort >= 4.2.5 with python-isort < 6) Requires: (python-mccabe >= 0.6 with python-mccabe < 0.8) %if 0%{?python_version_nodots} < 311 @@ -47,7 +47,7 @@ Requires: python-typing-extensions >= 3.10 %endif %if %{with tests} # SECTION pylint deps -BuildRequires: %{python_module astroid >= 2.15.2 with %python-astroid < 2.17.0~dev0} +BuildRequires: %{python_module astroid >= 2.15.4 with %python-astroid < 2.17.0~dev0} BuildRequires: %{python_module dill >= 0.3.6} BuildRequires: %{python_module isort >= 4.2.5 with %python-isort < 6} BuildRequires: %{python_module mccabe >= 0.6 with %python-mccabe < 0.8} @@ -106,7 +106,7 @@ done %if %{with tests} %check export LC_ALL="en_US.UTF-8" -%pytest --benchmark-disable -k "not test_linter_with_unpickleable_plugins_is_pickleable" +%pytest %{?jobs:-n %jobs} --benchmark-disable -k "not test_linter_with_unpickleable_plugins_is_pickleable" %endif %post