From c8e64ede4edacb54a7d3d81be11c6a0b2f46b85a Mon Sep 17 00:00:00 2001 From: Arthur Zucker Date: Mon, 20 May 2024 16:48:25 +0200 Subject: [PATCH] non zero exit --- utils/check_copies.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/check_copies.py b/utils/check_copies.py index 86694e3c1d..9730585952 100644 --- a/utils/check_copies.py +++ b/utils/check_copies.py @@ -566,7 +566,7 @@ def run_ruff(code): return stdout.decode() def fix_ruff(code): - command = ["ruff", "check", "-", "--config", "pyproject.toml", "--fix", "--exit-non-zero-on-fix"] + command = ["ruff", "check", "-", "--fix", "--exit-zero"] process = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE) stdout, _ = process.communicate(input=code.encode()) return stdout.decode()