Skip to content

Warn when # noqa: <code> contains an invalid code #3339

@martinlehoux

Description

@martinlehoux

With the following snippet, I can ignore the issue in 3 ways, but the 4th fails to ignore, and it's not consistant:

  • Add # noqa: N815 on the line ✔️
  • Add # noqa: mixed-case-variable-in-class-scope on the line ✔️
  • Add # ruff: noqa: N815 on the first line of the file ✔️
  • Add # ruff: noqa: mixed-case-variable-in-class-scope on the first line of the file 🛑
from typing import TypedDict


class Request(TypedDict):
    queryString: str -> Variable `queryString` in class scope should not be mixedCaseRuff(N815)

Metadata

Metadata

Assignees

Labels

suppressionRelated to supression of violations e.g. noqa

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions