Remove use of deprecated E999 from the fuzz-parser script (#12150)

This commit is contained in:
Alex Waygood 2024-07-02 14:18:25 +01:00 committed by GitHub
parent 8f40928534
commit 7c8112614a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 5 deletions

View file

@ -39,7 +39,7 @@ ExitCode = NewType("ExitCode", int)
def contains_bug(code: str, *, ruff_executable: str) -> bool:
"""Return `True` if the code triggers a parser error."""
completed_process = subprocess.run(
[ruff_executable, "check", "--select=E999", "--no-cache", "-"],
[ruff_executable, "check", "--config", "lint.select=[]", "--no-cache", "-"],
capture_output=True,
text=True,
input=code,