mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-30 05:44:56 +00:00
Run fuzzer with --preview
(#17210)
Summary -- Updates `fuzz.py` to run with `--preview`, which should allow it to catch semantic syntax errors. Test Plan -- @AlexWaygood and I temporarily made any named expression a semantic syntax error and checked that this led to fuzzing errors. We also tested that reverting the `--preview` addition did not show any errors. We also ran the fuzzer on 500 seeds on `main` but didn't find any issues, (un)fortunately.
This commit is contained in:
parent
95d6ed40cc
commit
b3243b5e2a
1 changed files with 1 additions and 0 deletions
|
@ -71,6 +71,7 @@ def ruff_contains_bug(code: str, *, ruff_executable: Path) -> bool:
|
||||||
"--no-cache",
|
"--no-cache",
|
||||||
"--target-version",
|
"--target-version",
|
||||||
"py313",
|
"py313",
|
||||||
|
"--preview",
|
||||||
"-",
|
"-",
|
||||||
],
|
],
|
||||||
capture_output=True,
|
capture_output=True,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue