Skip to content

Commit

Permalink
Use --output-format instead of --output
Browse files Browse the repository at this point in the history
In astral-sh/ruff#7984, ruff removed support for
the "--output" command line option, and now requires "--output-format"
instead.
  • Loading branch information
kstrauser authored and jhossbach committed Oct 18, 2023
1 parent 2373aed commit b26fa3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pylsp_ruff/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ def build_arguments(
# Suppress update announcements
args.append("--quiet")
# Use the json formatting for easier evaluation
args.append("--format=json")
args.append("--output-format=json")
if fix:
args.append("--fix")
else:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_ruff_lint.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def f():
assert call_args == [
"ruff",
"--quiet",
"--format=json",
"--output-format=json",
"--no-fix",
"--force-exclude",
f"--stdin-filename={os.path.join(workspace.root_path, '__init__.py')}",
Expand Down

0 comments on commit b26fa3b

Please sign in to comment.