Skip to content

Stop flagging # ty: annotations as commented-out code #24186

@amotl

Description

@amotl

Hi. Most recent ruff 0.15.7 respects the per-file # type: ignore annotation, but fails on # ty: ignore. Our workaround is to use # ty: ignore # noqa: ERA001, but we are sure this can be improved.

ERA001 Found commented-out code
 --> cratedb_toolkit/io/mongodb/transform-new.py:1:1
  |
1 | # ty: ignore
  | ^^^^^^^^^^^^

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingruleImplementing or modifying a lint rule

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions