Skip to content

Commit

Permalink
Replace --show-source with --output-format (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
iurisilvio authored Jul 9, 2024
1 parent cb1685e commit fd4c1e9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pytest_ruff/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,14 @@ def collect(self):

def check_file(path):
ruff = find_ruff_bin()
command = [ruff, "check", path, "--quiet", "--show-source", "--force-exclude"]
command = [
ruff,
"check",
path,
"--quiet",
"--output-format=full",
"--force-exclude",
]
child = Popen(command, stdout=PIPE, stderr=PIPE)
stdout, _ = child.communicate()
if stdout:
Expand Down

0 comments on commit fd4c1e9

Please sign in to comment.