Skip to content

v2.15.2

Compare
Choose a tag to compare
@Pierre-Sassoulas Pierre-Sassoulas released this 07 Sep 13:01
· 1370 commits to main since this release
  • 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