Skip to content

"ruff: noqa" does not suppress invalid-syntax #21991

@brandonchinn178

Description

@brandonchinn178

Summary

I have a file with invalid syntax, but adding # ruff: noqa to the top doesn't suppress invalid-syntax failures.

I could exclude it from the ruff CLI command in the first place, but this is a monorepo, and I'd prefer to exclude it directly in the file instead of a monorepo global file.

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionAsking for support or clarification

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions