mirror of
https://github.com/astral-sh/ruff
synced 2026-01-11 00:24:13 -05:00
Dogfood ty on py-fuzzer in CI (#20946)
This commit is contained in:
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user