From 6afc93a718dc4f243af2aa2e599a4a2fae4eb19c Mon Sep 17 00:00:00 2001 From: Justin Chu Date: Mon, 16 Oct 2023 16:41:03 -0700 Subject: [PATCH] Update ruff_linter.py --- lintrunner_adapters/adapters/ruff_linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())