Skip to content
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
1 change: 1 addition & 0 deletions CONTRIBUTORS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ contributors:
- Arun Persaud <[email protected]>
- Arthur Lutz <[email protected]>
- Antonio Ossa <[email protected]>
- Antonio <[email protected]>
- Anthony VEREZ <[email protected]>
- Anthony Tan <[email protected]>
- Anthony Foglia <[email protected]> (Google): Added simple string slots check.
Expand Down
2 changes: 1 addition & 1 deletion doc/user_guide/configuration/all-options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ Standard Checkers

confidence = ["HIGH", "CONTROL_FLOW", "INFERENCE", "INFERENCE_FAILURE", "UNDEFINED"]

disable = ["raw-checker-failed", "bad-inline-option", "locally-disabled", "file-ignored", "suppressed-message", "useless-suppression", "deprecated-pragma", "use-symbolic-message-instead", "consider-using-augmented-assign"]
disable = ["consider-using-augmented-assign"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick question: from where did this change arise?

When I --generate-toml-config on 2.17.5 I get:

disable = ["raw-checker-failed", "bad-inline-option", "locally-disabled", "file-ignored", "suppressed-message", "deprecated-pragma", "consider-using-augmented-assign", "attribute-defined-outside-init", "invalid-name", "missing-module-docstring", "missing-class-docstring", "missing-function-docstring", "protected-access", "too-few-public-methods", "line-too-long", "too-many-lines", "trailing-whitespace", "missing-final-newline", "trailing-newlines", "bad-indentation", "unnecessary-semicolon", "multiple-statements", "superfluous-parens", "mixed-line-endings", "unexpected-line-ending-format", "fixme"]

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Applied tox -e docs (probably from tbump)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. So there's a bug somewhere here, then?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe it's based on the local pylintrc ?


enable = []

Expand Down
75 changes: 75 additions & 0 deletions doc/whatsnew/2/2.17/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,81 @@ so we find problems before the actual release.

.. towncrier release notes start

What's new in Pylint 2.17.5?
----------------------------
Release date: 2023-07-26


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

- Fix a false positive for ``unused-variable`` when there is an import in a
``if TYPE_CHECKING:`` block and ``allow-global-unused-variables`` is set to
``no`` in the configuration.

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

- Fix false positives generated when supplying arguments as ``**kwargs`` to IO
calls like open().

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

- Fix a false positive where pylint was ignoring method calls annotated as
``NoReturn`` during the ``inconsistent-return-statements`` check.

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

- Exempt parents with only type annotations from the ``invalid-enum-extension``
message.

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



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

- Fixed crash when a call to ``super()`` was placed after an operator (e.g.
``not``).

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

- Fix crash for ``modified-while-iterating`` checker when deleting
members of a dict returned from a call.

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

- Fix crash in ``invalid-metaclass`` check when a metaclass had duplicate
bases.

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

- Avoid ``consider-using-f-string`` on modulos with brackets in template.

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

- Fix a crash when ``__all__`` exists but cannot be inferred.

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

- Fix crash when a variable is assigned to a class attribute of identical name.

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

- Fixed a crash when calling ``copy.copy()`` without arguments.

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



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

- Fix a crash when a ``nonlocal`` is defined at module-level.

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


What's new in Pylint 2.17.4?
----------------------------
Release date: 2023-05-06
Expand Down
3 changes: 0 additions & 3 deletions doc/whatsnew/fragments/8554.bugfix

This file was deleted.

4 changes: 0 additions & 4 deletions doc/whatsnew/fragments/8598.bugfix

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

3 changes: 0 additions & 3 deletions doc/whatsnew/fragments/8735.other

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

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

This file was deleted.

4 changes: 0 additions & 4 deletions doc/whatsnew/fragments/8830.false_positive

This file was deleted.

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__ = "2.17.4"
__version__ = "2.17.5"


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 = "2.17.4"
current = "2.17.5"
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 = "2.17.4"
version = "2.17.5"
directory = "doc/whatsnew/fragments"
filename = "doc/whatsnew/2/2.17/index.rst"
template = "doc/whatsnew/fragments/_template.rst"
Expand Down