From 9f96db4e7f80c61e68f9bb56fb68b9d9a4ccab7a84f24c717b2b91f3b89027f5 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sun, 30 Jun 2024 22:11:35 +0000 Subject: [PATCH] - update to 3.2.5: * Fixed a false positive ``unreachable-code`` when using ``typing.Any`` as return type in python 3.8, the ``typing.NoReturn`` are not taken into account anymore for python 3.8 however. * Prevent emitting ``possibly-used-before-assignment`` when relying on names only potentially not defined in conditional blocks guarded by functions annotated with ``typing.Never`` or ``typing.NoReturn``. - update to 3.2.3: * Classes with only an Ellipsis (``...``) in their body do not trigger 'multiple-statements' anymore if they are inlined * Fix a false positive for ``redefined-outer-name`` when there is a name defined in an exception-handling block which shares the same name as a local variable that has been defined in a function body. * Fix a false positive for ``use-yield-from`` when using the return value from the ``yield`` atom. - update to 3.2.2: * Fix multiple false positives for generic class syntax added in Python 3.12 (PEP 695). * Exclude context manager without cleanup from ``contextmanager-generator-missing-cleanup`` checks. - update to 3.2.1: * Exclude if/else branches containing terminating functions (e.g. `sys.exit()`) from `possibly-used-before-assignment` checks. * Don't emit ``typevar-name-incorrect-variance`` warnings for PEP 695 style TypeVars. * The variance is inferred automatically by the type checker. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=158 --- pylint-3.1.0-gh.tar.gz | 3 --- pylint-3.2.5-gh.tar.gz | 3 +++ python-pylint.changes | 52 ++++++++++++++++++++++++++++++++++++++++++ python-pylint.spec | 6 ++--- 4 files changed, 58 insertions(+), 6 deletions(-) delete mode 100644 pylint-3.1.0-gh.tar.gz create mode 100644 pylint-3.2.5-gh.tar.gz diff --git a/pylint-3.1.0-gh.tar.gz b/pylint-3.1.0-gh.tar.gz deleted file mode 100644 index 2c880ef..0000000 --- a/pylint-3.1.0-gh.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c4c13c6b77f6604367763f906e5df4e9f4c7fbfa6e8553f31493adfabfc73092 -size 1433040 diff --git a/pylint-3.2.5-gh.tar.gz b/pylint-3.2.5-gh.tar.gz new file mode 100644 index 0000000..3758952 --- /dev/null +++ b/pylint-3.2.5-gh.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7860e1f334c338e8400567df893ebe0934c162737f9bc22eb6f0a9c530a52cfc +size 1446535 diff --git a/python-pylint.changes b/python-pylint.changes index 8922bb8..ef87b39 100644 --- a/python-pylint.changes +++ b/python-pylint.changes @@ -1,3 +1,55 @@ +------------------------------------------------------------------- +Sun Jun 30 22:05:58 UTC 2024 - Dirk Müller + +- update to 3.2.5: + * Fixed a false positive ``unreachable-code`` when using + ``typing.Any`` as return type in python 3.8, the + ``typing.NoReturn`` are not taken into account + anymore for python 3.8 however. + * Prevent emitting ``possibly-used-before-assignment`` when + relying on names only potentially not defined in conditional + blocks guarded by functions annotated with ``typing.Never`` + or ``typing.NoReturn``. +- update to 3.2.3: + * Classes with only an Ellipsis (``...``) in their body do not + trigger 'multiple-statements' anymore if they are inlined + * Fix a false positive for ``redefined-outer-name`` when there + is a name defined in an exception-handling block which shares + the same name as a local variable that has been defined in a + function body. + * Fix a false positive for ``use-yield-from`` when using the + return value from the ``yield`` atom. +- update to 3.2.2: + * Fix multiple false positives for generic class syntax added + in Python 3.12 (PEP 695). + * Exclude context manager without cleanup from + ``contextmanager-generator-missing-cleanup`` checks. +- update to 3.2.1: + * Exclude if/else branches containing terminating functions + (e.g. `sys.exit()`) from `possibly-used-before-assignment` + checks. + * Don't emit ``typevar-name-incorrect-variance`` warnings for + PEP 695 style TypeVars. + * The variance is inferred automatically by the type checker. + * Adding ``_co`` or ``_contra`` suffix can help to reason about + TypeVar. +- update to 3.2.0: + * Understand `six.PY2` and `six.PY3` for conditional imports. + * Github can use to automatically annotate code. Use it with + `pylint --output-format=github` on your Github Workflows. + * Add check ``possibly-used-before-assignment`` when relying on + names after an ``if/else`` switch when one branch failed to + define the name, raise, or return. + * Checks for generators that use contextmanagers that don't + handle cleanup properly. + * Is meant to raise visibilty on the case that a generator is + not fully exhausted and the contextmanager is not cleaned up + properly. + * A contextmanager must yield a non-constant value and not + handle cleanup for GeneratorExit. + * The using generator must attempt to use the yielded context + value `with x() as y` and not just `with x()`. + ------------------------------------------------------------------- Fri Mar 22 20:01:42 UTC 2024 - Dirk Müller diff --git a/python-pylint.spec b/python-pylint.spec index 3bfdcea..0a40ee7 100644 --- a/python-pylint.spec +++ b/python-pylint.spec @@ -19,7 +19,7 @@ %{?sle15_python_module_pythons} %bcond_without tests Name: python-pylint -Version: 3.1.0 +Version: 3.2.5 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 >= 3.1.0 with python-astroid < 3.2.0~dev0) +Requires: (python-astroid >= 3.2.2 with python-astroid < 3.3.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 @@ -45,7 +45,7 @@ Requires: python-tomli >= 1.1.0 Requires: python-typing-extensions >= 4.9 %if %{with tests} # SECTION pylint deps -BuildRequires: %{python_module astroid >= 3.1.0 with %python-astroid < 3.2.0~dev0} +BuildRequires: %{python_module astroid >= 3.2.2 with %python-astroid < 3.3.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}