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.