non zero exit

This commit is contained in:
Arthur Zucker 2024-05-20 16:48:25 +02:00
parent 43d7809079
commit c8e64ede4e
1 changed files with 1 additions and 1 deletions

View File

@ -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()