Skip to content

noqa functions chaotically or not at all #810

@d-w-moore

Description

@d-w-moore

In ruff-linter workflow, noqa is not processed as expected.

  1. # noqa at head of a file is flagged as an unused directive.
  2. # noqa: <code>... directives often do not produce the desired effect. In particular the addition of such lines often leads to their being flagged as unused. This and the first point run counter to our stated team goal of trying to attain a green condition in the ruff-checks section of the linter workflow.
  3. occasionally when a source line is quoted along with line number and lint check error under "Annotations" above the workflow output, I've found that the line does not actually exist in the current state of the PR. (Perhaps owing to an artifact left over in a .ruff_cache/ directory?)

All of the above results in the lack of progress toward merging a body of code changes, once all reasonable linter-requested corrections have been made to the PR.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions