From e01a721ee731e17f224b9c7e0172b570f6920c16 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Thu, 7 Aug 2025 16:32:03 +0200 Subject: [PATCH] Bump pylint to 3.3.8, update changelog --- doc/whatsnew/3/3.3/index.rst | 47 +++++++++++++++++++++ doc/whatsnew/fragments/10104.false_positive | 3 -- doc/whatsnew/fragments/10373.bugfix | 3 -- doc/whatsnew/fragments/10402.bugfix | 3 -- doc/whatsnew/fragments/10426.false_positive | 3 -- doc/whatsnew/fragments/10482.false_negative | 3 -- doc/whatsnew/fragments/9668.false_positive | 4 -- pylint/__pkginfo__.py | 2 +- script/.contributors_aliases.json | 1 + tbump.toml | 2 +- towncrier.toml | 2 +- 11 files changed, 51 insertions(+), 22 deletions(-) delete mode 100644 doc/whatsnew/fragments/10104.false_positive delete mode 100644 doc/whatsnew/fragments/10373.bugfix delete mode 100644 doc/whatsnew/fragments/10402.bugfix delete mode 100644 doc/whatsnew/fragments/10426.false_positive delete mode 100644 doc/whatsnew/fragments/10482.false_negative delete mode 100644 doc/whatsnew/fragments/9668.false_positive diff --git a/doc/whatsnew/3/3.3/index.rst b/doc/whatsnew/3/3.3/index.rst index 29c4834c0a..81a49032e2 100644 --- a/doc/whatsnew/3/3.3/index.rst +++ b/doc/whatsnew/3/3.3/index.rst @@ -14,6 +14,53 @@ Summary -- Release highlights .. towncrier release notes start +What's new in Pylint 3.3.8? +--------------------------- +Release date: 2025-08-09 + +This patch release includes an exceptional fix for a false negative issue. +For details, see: https://github.com/pylint-dev/pylint/pull/10482#issuecomment-3164514082 + +False Positives Fixed +--------------------- + +- Fix false positives for `possibly-used-before-assignment` when variables are exhaustively + assigned within a `match` block. + + Closes #9668 (`#9668 `_) + +- Fix false positive for `missing-raises-doc` and `missing-yield-doc` when the method length is less than docstring-min-length. + + Refs #10104 (`#10104 `_) + +- Fix a false positive for ``unused-variable`` when multiple except handlers bind the same name under a try block. + + Closes #10426 (`#10426 `_) + + + +False Negatives Fixed +--------------------- + +- Fix false-negative for ``used-before-assignment`` with ``from __future__ import annotations`` in function definitions. + + Refs #10482 (`#10482 `_) + + + +Other Bug Fixes +--------------- + +- Fix a bug in Pyreverse where aggregations and associations were included in diagrams regardless of the selected --filter-mode (such as PUB_ONLY, ALL, etc.). + + Closes #10373 (`#10373 `_) + +- Fix double underscores erroneously rendering as bold in pyreverse's Mermaid output. + + Closes #10402 (`#10402 `_) + + + What's new in Pylint 3.3.7? --------------------------- Release date: 2025-05-04 diff --git a/doc/whatsnew/fragments/10104.false_positive b/doc/whatsnew/fragments/10104.false_positive deleted file mode 100644 index 3a036d5a50..0000000000 --- a/doc/whatsnew/fragments/10104.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Fix false positive for `missing-raises-doc` and `missing-yield-doc` when the method length is less than docstring-min-length. - -Refs #10104 diff --git a/doc/whatsnew/fragments/10373.bugfix b/doc/whatsnew/fragments/10373.bugfix deleted file mode 100644 index d7ba3a1893..0000000000 --- a/doc/whatsnew/fragments/10373.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -Fix a bug in Pyreverse where aggregations and associations were included in diagrams regardless of the selected --filter-mode (such as PUB_ONLY, ALL, etc.). - -Closes #10373 diff --git a/doc/whatsnew/fragments/10402.bugfix b/doc/whatsnew/fragments/10402.bugfix deleted file mode 100644 index a7cea6782e..0000000000 --- a/doc/whatsnew/fragments/10402.bugfix +++ /dev/null @@ -1,3 +0,0 @@ -Fix double underscores erroneously rendering as bold in pyreverse's Mermaid output. - -Closes #10402 diff --git a/doc/whatsnew/fragments/10426.false_positive b/doc/whatsnew/fragments/10426.false_positive deleted file mode 100644 index caa29449ee..0000000000 --- a/doc/whatsnew/fragments/10426.false_positive +++ /dev/null @@ -1,3 +0,0 @@ -Fix a false positive for ``unused-variable`` when multiple except handlers bind the same name under a try block. - -Closes #10426 diff --git a/doc/whatsnew/fragments/10482.false_negative b/doc/whatsnew/fragments/10482.false_negative deleted file mode 100644 index f689436b8b..0000000000 --- a/doc/whatsnew/fragments/10482.false_negative +++ /dev/null @@ -1,3 +0,0 @@ -Fix false-negative for ``used-before-assignment`` with ``from __future__ import annotations`` in function definitions. - -Refs #10482 diff --git a/doc/whatsnew/fragments/9668.false_positive b/doc/whatsnew/fragments/9668.false_positive deleted file mode 100644 index 9668bd217e..0000000000 --- a/doc/whatsnew/fragments/9668.false_positive +++ /dev/null @@ -1,4 +0,0 @@ -Fix false positives for `possibly-used-before-assignment` when variables are exhaustively -assigned within a `match` block. - -Closes #9668 diff --git a/pylint/__pkginfo__.py b/pylint/__pkginfo__.py index 6d9fccb5bd..31e091bfa7 100644 --- a/pylint/__pkginfo__.py +++ b/pylint/__pkginfo__.py @@ -9,7 +9,7 @@ from __future__ import annotations -__version__ = "3.3.7" +__version__ = "3.3.8" def get_numversion_from_version(v: str) -> tuple[int, int, int]: diff --git a/script/.contributors_aliases.json b/script/.contributors_aliases.json index 651aa4c4e6..cf34d00029 100644 --- a/script/.contributors_aliases.json +++ b/script/.contributors_aliases.json @@ -273,6 +273,7 @@ "mails": [ "66853113+pre-commit-ci[bot]@users.noreply.github.com", "49699333+dependabot[bot]@users.noreply.github.com", + "212256041+pylint-backport-bot[bot]@users.noreply.github.com", "41898282+github-actions[bot]@users.noreply.github.com" ], "name": "bot" diff --git a/tbump.toml b/tbump.toml index 5da7f7ef37..37dd0590cb 100644 --- a/tbump.toml +++ b/tbump.toml @@ -1,7 +1,7 @@ github_url = "https://github.com/pylint-dev/pylint" [version] -current = "3.3.7" +current = "3.3.8" regex = ''' ^(?P0|[1-9]\d*) \. diff --git a/towncrier.toml b/towncrier.toml index a497b544e9..b2cd891386 100644 --- a/towncrier.toml +++ b/towncrier.toml @@ -1,5 +1,5 @@ [tool.towncrier] -version = "3.3.7" +version = "3.3.8" directory = "doc/whatsnew/fragments" filename = "doc/whatsnew/3/3.3/index.rst" template = "doc/whatsnew/fragments/_template.rst"