mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-02 04:48:07 +00:00
Dogfood ty on py-fuzzer in CI (#20946)
This commit is contained in:
parent
6d2cf3475f
commit
8ca2b5555d
3 changed files with 13 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue