From 918d2168e15662df90cfb993df100e566f69d418 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Thu, 6 Jun 2024 15:14:11 +0200 Subject: [PATCH] Bump pylint to 3.2.3, update changelog --- doc/whatsnew/3/3.2/index.rst | 23 ++++++++++++++++++++++ doc/whatsnew/fragments/9398.false_positive | 4 ---- doc/whatsnew/fragments/9671.false_positive | 3 --- doc/whatsnew/fragments/9696.false_positive | 3 --- examples/pylintrc | 4 ++-- examples/pyproject.toml | 6 +++--- pylint/__pkginfo__.py | 2 +- tbump.toml | 2 +- towncrier.toml | 2 +- 9 files changed, 31 insertions(+), 18 deletions(-) delete mode 100644 doc/whatsnew/fragments/9398.false_positive delete mode 100644 doc/whatsnew/fragments/9671.false_positive delete mode 100644 doc/whatsnew/fragments/9696.false_positive diff --git a/doc/whatsnew/3/3.2/index.rst b/doc/whatsnew/3/3.2/index.rst index c71ae72197..e8ee047d15 100644 --- a/doc/whatsnew/3/3.2/index.rst +++ b/doc/whatsnew/3/3.2/index.rst @@ -14,6 +14,29 @@ Summary -- Release highlights .. towncrier release notes start +What's new in Pylint 3.2.3? +--------------------------- +Release date: 2024-06-06 + + +False Positives Fixed +--------------------- + +- Classes with only an Ellipsis (``...``) in their body do not trigger 'multiple-statements' + anymore if they are inlined (in accordance with black's 2024 style). + + Closes #9398 (`#9398 `_) + +- 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. + + Closes #9671 (`#9671 `_) + +- Fix a false positive for ``use-yield-from`` when using the return value from the ``yield`` atom. + + Closes #9696 (`#9696 `_) + + + What's new in Pylint 3.2.2? --------------------------- Release date: 2024-05-20 diff --git a/doc/whatsnew/fragments/9398.false_positive b/doc/whatsnew/fragments/9398.false_positive deleted file mode 100644 index 12069d6478..0000000000 --- a/doc/whatsnew/fragments/9398.false_positive +++ /dev/null @@ -1,4 +0,0 @@ -Classes with only an Ellipsis (``...``) in their body do not trigger 'multiple-statements' -anymore if they are inlined (in accordance with black's 2024 style). - -Closes #9398 diff --git a/doc/whatsnew/fragments/9671.false_positive b/doc/whatsnew/fragments/9671.false_positive deleted file mode 100644 index 23dafff10f..0000000000 --- a/doc/whatsnew/fragments/9671.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -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. - -Closes #9671 diff --git a/doc/whatsnew/fragments/9696.false_positive b/doc/whatsnew/fragments/9696.false_positive deleted file mode 100644 index 5d6e8cbf11..0000000000 --- a/doc/whatsnew/fragments/9696.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Fix a false positive for ``use-yield-from`` when using the return value from the ``yield`` atom. - -Closes #9696 diff --git a/examples/pylintrc b/examples/pylintrc index 0a917e9cef..24d91bd4e9 100644 --- a/examples/pylintrc +++ b/examples/pylintrc @@ -87,8 +87,8 @@ load-plugins= # Pickle collected data for later comparisons. persistent=yes -# Resolve imports to .pyi stubs if available. May reduce no-member messages -# and increase not-an-iterable messages. +# Resolve imports to .pyi stubs if available. May reduce no-member messages and +# increase not-an-iterable messages. prefer-stubs=no # Minimum Python version to use for version dependent checks. Will default to diff --git a/examples/pyproject.toml b/examples/pyproject.toml index 68e8c66737..8b3c7b29f7 100644 --- a/examples/pyproject.toml +++ b/examples/pyproject.toml @@ -77,9 +77,9 @@ limit-inference-results = 100 # Pickle collected data for later comparisons. persistent = true -# Resolve imports to .pyi stubs if available. May reduce no-member messages -# and increase not-an-iterable messages. -prefer-stubs = false +# Resolve imports to .pyi stubs if available. May reduce no-member messages and +# increase not-an-iterable messages. +# prefer-stubs = # Minimum Python version to use for version dependent checks. Will default to the # version used to run pylint. diff --git a/pylint/__pkginfo__.py b/pylint/__pkginfo__.py index a898f5f7bd..e57a71404f 100644 --- a/pylint/__pkginfo__.py +++ b/pylint/__pkginfo__.py @@ -9,7 +9,7 @@ from __future__ import annotations -__version__ = "3.2.2" +__version__ = "3.2.3" def get_numversion_from_version(v: str) -> tuple[int, int, int]: diff --git a/tbump.toml b/tbump.toml index e8a35d2fcc..1a1fbaec5c 100644 --- a/tbump.toml +++ b/tbump.toml @@ -1,7 +1,7 @@ github_url = "https://github.com/pylint-dev/pylint" [version] -current = "3.2.2" +current = "3.2.3" regex = ''' ^(?P0|[1-9]\d*) \. diff --git a/towncrier.toml b/towncrier.toml index 8df0009ec2..a25f83a95d 100644 --- a/towncrier.toml +++ b/towncrier.toml @@ -1,5 +1,5 @@ [tool.towncrier] -version = "3.2.2" +version = "3.2.3" directory = "doc/whatsnew/fragments" filename = "doc/whatsnew/3/3.2/index.rst" template = "doc/whatsnew/fragments/_template.rst"