Skip to content

Commit 688a876

Browse files
vdusekclaude
andcommitted
chore: Enable ty unused-ignore-comment rule
Now that ty supports detecting unused suppression comments (upstream issues astral-sh/ty#278 and astral-sh/ty#1501 are closed), enable the rule project-wide so obsolete `# ty: ignore[...]` comments are caught automatically. Verified all current suppressions are still required. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 4b426dd commit 688a876

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ python-version = "3.11"
186186
include = ["src", "tests", "scripts", "docs", "website"]
187187
exclude = ["website/versioned_docs"]
188188

189+
[tool.ty.rules]
190+
unused-ignore-comment = "error"
191+
189192
[[tool.ty.overrides]]
190193
include = ["docs/**/*.py", "website/**/*.py"]
191194
[tool.ty.overrides.rules]

0 commit comments

Comments
 (0)