Skip to content

v2.14.2

Compare
Choose a tag to compare
@Pierre-Sassoulas Pierre-Sassoulas released this 15 Jun 06:45
· 1871 commits to main since this release
  • Fixed a false positive for unused-variable when a function returns an
    argparse.Namespace object.

    Closes #6895

  • Avoided raising an identical undefined-loop-variable message twice on the same line.

  • Don't crash if lint.run._query_cpu() is run within a Kubernetes Pod, that has only
    a fraction of a cpu core assigned. Just go with one process then.

    Closes #6902

  • Fixed a false positive in consider-using-f-string if the left side of a % is not a string.

    Closes #6689

  • Fixed a false positive in unnecessary-list-index-lookup and unnecessary-dict-index-lookup
    when the subscript is updated in the body of a nested loop.

    Closes #6818

  • Fixed an issue with multi-line init-hook options which did not record the line endings.

    Closes #6888

  • Fixed a false positive for used-before-assignment when a try block returns
    but an except handler defines a name via type annotation.

  • --errors-only no longer enables previously disabled messages. It was acting as
    "emit all and only error messages" without being clearly documented that way.

    Closes #6811