Dogfood ty on py-fuzzer in CI (#20946)

This commit is contained in:
Alex Waygood 2025-10-17 20:30:17 +01:00 committed by GitHub
parent 6d2cf3475f
commit 8ca2b5555d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 13 additions and 2 deletions

View file

@ -139,7 +139,7 @@ class FuzzResult:
case Executable.TY:
panic_message = f"The following code triggers a {new}ty panic:"
case _ as unreachable:
assert_never(unreachable)
assert_never(unreachable) # ty: ignore[type-assertion-failure]
print(colored(panic_message, "red"))
print()

View file

@ -32,6 +32,10 @@ warn_unreachable = true
local_partial_types = true
enable_error_code = "ignore-without-code,redundant-expr,truthy-bool"
[tool.ty.rules]
possibly-unresolved-reference = "error"
unused-ignore-comment = "error"
[tool.ruff]
fix = true
preview = true