Skip to content

Ruff 0.3.5 not respecting directive for all lines of a multiline expression #10795

@BenZickel

Description

@BenZickel

The bug occurs when switching from ruff 0.3.4 to 0.3.5 with the directive # noga: F822 not respected for all lines of a multiline expression.

The problem is described in this issue in the Pyro repo, mainly:

  • Linting with ruff version 0.3.5 fails as can be seen here.
  • The failure is due to ruff version 0.3.5 not respecting this directive.
  • The problem does not occur with ruff version 0.3.4.

The command that is executed is ruff check . and is part of the CI workflow of the Pyro repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions