Skip to content

Update dependency pylint to v2.15.4

Renovate [bot] requested to merge renovate/pylint-2.x into master

This MR contains the following updates:

Package Update Change
pylint (changelog) patch ==2.15.0 -> ==2.15.4

Release Notes

PyCQA/pylint

v2.15.4

Compare Source

False Positives Fixed

  • Fix the message for unnecessary-dunder-call for __aiter__ and __aneext__. Also only emit the warning when py-version >= 3.10.

    Closes #​7529

Other Bug Fixes

  • Fix bug in detecting unused-variable when iterating on variable.

    Closes #​3044

  • Fixed handling of -- as separator between positional arguments and flags. This was not actually fixed in 2.14.5.

    Closes #​7003, Refs #​7096

  • Report no-self-argument rather than no-method-argument for methods with variadic arguments.

    Closes #​7507

  • Fixed an issue where syntax-error couldn't be raised on files with invalid encodings.

    Closes #​7522

  • Fix false positive for redefined-outer-name when aliasing typing e.g. as t and guarding imports under t.TYPE_CHECKING.

    Closes #​7524

  • Fixed a crash of the modified_iterating checker when iterating on a set defined as a class attribute.

    Closes #​7528

  • Fix bug in scanning of names inside arguments to typing.Literal. See https://peps.python.org/pep-0586/#literals-enums-and-forward-references for details.

    Refs #​3299

Other Changes

  • Add method name to the error messages of no-method-argument and no-self-argument.

    Closes #​7507

v2.15.3

Compare Source

  • Fixed a crash in the unhashable-member checker when using a lambda as a dict key.

    Closes #​7453

  • Fix a crash in the modified-iterating-dict checker involving instance attributes.

    Closes #​7461

  • invalid-class-object does not crash anymore when __class__ is assigned alongside another variable.

    Closes #​7467

  • Fix false positive for global-variable-not-assigned when a global variable is re-assigned via an ImportFrom node.

    Closes #​4809

  • Fix false positive for undefined-loop-variable in for-else loops that use a function having a return type annotation of NoReturn or Never.

    Closes #​7311

  • --help-msg now accepts a comma-separated list of message IDs again.

    Closes #​7471

v2.15.2

Compare Source

  • Fixed a case where custom plugins specified by command line could silently fail.

    Specifically, if a plugin relies on the init-hook option changing sys.path before it can be imported, this will now emit a bad-plugin-value message. Before this change, it would silently fail to register the plugin for use, but would load any configuration, which could have unintended effects.

    Fixes part of #​7264.

  • Fix used-before-assignment for functions/classes defined in type checking guard.

    Closes #​7368

  • Update modified_iterating checker to fix a crash with for loops on empty list.

    Closes #​7380

  • The docparams extension now considers typing in Numpy style docstrings as "documentation" for the missing-param-doc message.

    Refs #​7398

  • Fix false positive for unused-variable and unused-import when a name is only used in a string literal type annotation.

    Closes #​3299

  • Fix false positive for too-many-function-args when a function call is assigned to a class attribute inside the class where the function is defined.

    Closes #​6592

  • Fix used-before-assignment for functions/classes defined in type checking guard.

    Closes #​7368

  • Fix ignored files being linted when passed on stdin.

    Closes #​4354

  • missing-return-doc, missing-raises-doc and missing-yields-doc now respect the no-docstring-rgx option.

    Closes #​4743

  • Don't crash on OSError in config file discovery.

    Closes #​7169

  • disable-next is now correctly scoped to only the succeeding line.

    Closes #​7401

  • Update modified_iterating checker to fix a crash with for loops on empty list.

    Closes #​7380


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, click this checkbox.

This MR has been generated by Renovate Bot.

Edited by Renovate [bot]

Merge request reports

Loading