Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bump pylint to 3.3.7, update changelog #10367

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions doc/whatsnew/3/3.3/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,47 @@ Summary -- Release highlights

.. towncrier release notes start

What's new in Pylint 3.3.7?
---------------------------
Release date: 2025-05-04


False Positives Fixed
---------------------

- Comparisons between two calls to `type()` won't raise an ``unidiomatic-typecheck`` warning anymore, consistent with the behavior applied only for ``==`` previously.

Closes #10161 (`#10161 <https://github.com/pylint-dev/pylint/issues/10161>`_)



Other Bug Fixes
---------------

- Fixed a crash when importing a class decorator that did not exist with the same name as a class attribute after the class definition.

Closes #10105 (`#10105 <https://github.com/pylint-dev/pylint/issues/10105>`_)

- Fix a crash caused by malformed format strings when using `.format` with keyword arguments.

Closes #10282 (`#10282 <https://github.com/pylint-dev/pylint/issues/10282>`_)

- Using a slice as a class decorator now raises a ``not-callable`` message instead of crashing. A lot of checks that dealt with decorators (too many to list) are now shortcut if the decorator can't immediately be inferred to a function or class definition.

Closes #10334 (`#10334 <https://github.com/pylint-dev/pylint/issues/10334>`_)



Other Changes
-------------

- The algorithm used for ``no-member`` suggestions is now more efficient and cuts the
calculation when the distance score is already above the threshold.

Refs #10277 (`#10277 <https://github.com/pylint-dev/pylint/issues/10277>`_)



What's new in Pylint 3.3.6?
---------------------------
Release date: 2025-03-20
Expand Down
3 changes: 0 additions & 3 deletions doc/whatsnew/fragments/10105.bugfix

This file was deleted.

3 changes: 0 additions & 3 deletions doc/whatsnew/fragments/10161.false_positive

This file was deleted.

4 changes: 0 additions & 4 deletions doc/whatsnew/fragments/10277.other

This file was deleted.

3 changes: 0 additions & 3 deletions doc/whatsnew/fragments/10282.bugfix

This file was deleted.

3 changes: 0 additions & 3 deletions doc/whatsnew/fragments/10334.bugfix

This file was deleted.

8 changes: 4 additions & 4 deletions examples/pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -495,10 +495,10 @@ evaluation=max(0, 0 if fatal else 10.0 - ((float(5 * error + warning + refactor
# used to format the message information. See doc for all details.
msg-template=

# Set the output format. Available formats are: text, parseable, colorized,
# json2 (improved json format), json (old json format) and msvs (visual
# studio). You can also give a reporter class, e.g.
# mypackage.mymodule.MyReporterClass.
# Set the output format. Available formats are: 'text', 'parseable',
# 'colorized', 'json2' (improved json format), 'json' (old json format), msvs
# (visual studio) and 'github' (GitHub actions). You can also give a reporter
# class, e.g. mypackage.mymodule.MyReporterClass.
#output-format=

# Tells whether to display a full report or only the messages.
Expand Down
7 changes: 4 additions & 3 deletions examples/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,10 @@ evaluation = "max(0, 0 if fatal else 10.0 - ((float(5 * error + warning + refact
# used to format the message information. See doc for all details.
# msg-template =

# Set the output format. Available formats are: text, parseable, colorized, json2
# (improved json format), json (old json format) and msvs (visual studio). You
# can also give a reporter class, e.g. mypackage.mymodule.MyReporterClass.
# Set the output format. Available formats are: 'text', 'parseable', 'colorized',
# 'json2' (improved json format), 'json' (old json format), msvs (visual studio)
# and 'github' (GitHub actions). You can also give a reporter class, e.g.
# mypackage.mymodule.MyReporterClass.
# output-format =

# Tells whether to display a full report or only the messages.
Expand Down
2 changes: 1 addition & 1 deletion pylint/__pkginfo__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from __future__ import annotations

__version__ = "3.3.6"
__version__ = "3.3.7"


def get_numversion_from_version(v: str) -> tuple[int, int, int]:
Expand Down
2 changes: 1 addition & 1 deletion tbump.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github_url = "https://github.com/pylint-dev/pylint"

[version]
current = "3.3.6"
current = "3.3.7"
regex = '''
^(?P<major>0|[1-9]\d*)
\.
Expand Down
2 changes: 1 addition & 1 deletion towncrier.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.towncrier]
version = "3.3.6"
version = "3.3.7"
directory = "doc/whatsnew/fragments"
filename = "doc/whatsnew/3/3.3/index.rst"
template = "doc/whatsnew/fragments/_template.rst"
Expand Down