Skip to content

Commit

Permalink
Send ruff's stderr to os.devnull
Browse files Browse the repository at this point in the history
  • Loading branch information
hukkin authored Nov 3, 2024
1 parent 6cd00a4 commit d08715b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mdformat_ruff/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@ def format_python(unformatted: str, _info_str: str) -> str:
:rtype: str
"""
return subprocess.check_output(
[find_ruff_bin(), "format", "-"], input=unformatted.encode()
[find_ruff_bin(), "format", "-"],
input=unformatted.encode(),
stderr=subprocess.DEVNULL,
).decode()

0 comments on commit d08715b

Please sign in to comment.