diff --git a/lintrunner_adapters/adapters/ruff_linter.py b/lintrunner_adapters/adapters/ruff_linter.py index a04ae18..adcde7f 100644 --- a/lintrunner_adapters/adapters/ruff_linter.py +++ b/lintrunner_adapters/adapters/ruff_linter.py @@ -23,7 +23,7 @@ def explain_rule(code: str) -> str: proc = run_command( - ["ruff", "rule", "--output-format=json", code], + ["ruff", "rule", "--format=json", code], check=True, ) rule = json.loads(str(proc.stdout, "utf-8").strip())