Skip to content

Commit

Permalink
Replace --show-source with --output-format
Browse files Browse the repository at this point in the history
  • Loading branch information
iurisilvio committed Jul 9, 2024
1 parent cb1685e commit e4a4097
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 e4a4097

Please sign in to comment.