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: def contains_bug(code: str, *, ruff_executable: str) -> bool:
"""Return `True` if the code triggers a parser error.""" """Return `True` if the code triggers a parser error."""
completed_process = subprocess.run( completed_process = subprocess.run(
[ruff_executable, "check", "--select=E999", "--no-cache", "-"], [ruff_executable, "check", "--config", "lint.select=[]", "--no-cache", "-"],
capture_output=True, capture_output=True,
text=True, text=True,
input=code, input=code,

View file

@ -10,22 +10,27 @@ markdown-it-py==3.0.0
# via rich # via rich
mdurl==0.1.2 mdurl==0.1.2
# via markdown-it-py # via markdown-it-py
pygments==2.17.2 pygments==2.18.0
# via rich # via rich
pysource-codegen==0.5.2 pysource-codegen==0.5.2
# via -r scripts/fuzz-parser/requirements.in
pysource-minimize==0.6.3 pysource-minimize==0.6.3
# via -r scripts/fuzz-parser/requirements.in
rich==13.7.1 rich==13.7.1
# via # via
# pysource-minimize # pysource-minimize
# rich-argparse # rich-argparse
rich-argparse==1.4.0 rich-argparse==1.5.2
ruff==0.4.2 # via -r scripts/fuzz-parser/requirements.in
ruff==0.5.0
# via -r scripts/fuzz-parser/requirements.in
six==1.16.0 six==1.16.0
# via # via
# asttokens # asttokens
# astunparse # astunparse
termcolor==2.4.0 termcolor==2.4.0
typing-extensions==4.11.0 # via -r scripts/fuzz-parser/requirements.in
typing-extensions==4.12.2
# via pysource-codegen # via pysource-codegen
wheel==0.43.0 wheel==0.43.0
# via astunparse # via astunparse