facebook / facebook/pyrefly

new rule - invalid ignore comment

Open
#3,752 1 comment 2 reactions 1 assignee Claimed by @mikeleppane View on GitHub
typechecking
Dominant language
Rust
Stars
7k
Forks
516
PR merge metrics
No merged PRs in 30d

Description

ty's [`invalid-ignore-comment`](https://docs.astral.sh/ty/reference/rules/#invalid-ignore-comment) rule detects `# type: ignore` and `# ty: ignore` comments that are a mistake.

```py
# pyrefly: ignoree[asdfasdf] # should be an error
# pyrefly: ignoree # should be an error
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.