Skip to content

Commit

Permalink
fix(linter): Use --output-format in the RUFF linter
Browse files Browse the repository at this point in the history
The `--format` option has been renamed to `--output-format` in astral-sh/ruff#7984
  • Loading branch information
justinchuby authored Oct 16, 2023
1 parent ff376a5 commit e8ad8a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lintrunner_adapters/adapters/ruff_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

def explain_rule(code: str) -> str:
proc = run_command(
["ruff", "rule", "--format=json", code],
["ruff", "rule", "--output-format=json", code],
check=True,
)
rule = json.loads(str(proc.stdout, "utf-8").strip())
Expand Down Expand Up @@ -238,7 +238,7 @@ def check_file_for_fixes(

def main() -> None:
parser = argparse.ArgumentParser(
description=f"Ruff linter. Linter code: {LINTER_CODE}. Use with RUFF-FIX to auto-fix issues.",
description=f"Ruff linter with auto-fix support. Linter code: {LINTER_CODE}.",
fromfile_prefix_chars="@",
)
parser.add_argument(
Expand Down

0 comments on commit e8ad8a3

Please sign in to comment.