Skip to content

Commit

Permalink
fix(linter): Use check in ruff (#101)
Browse files Browse the repository at this point in the history
Compatibility with ruff 0.5
  • Loading branch information
justinchuby authored Jun 27, 2024
1 parent 299ffde commit 9a3c8c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lintrunner_adapters/adapters/ruff_fix_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ def check_file(
sys.executable,
"-m",
"ruff",
"check",
"--fix-only",
"--exit-zero",
*([f"--config={config}"] if config else []),
Expand Down
2 changes: 2 additions & 0 deletions lintrunner_adapters/adapters/ruff_linter.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def check_files(
sys.executable,
"-m",
"ruff",
"check",
"--exit-zero",
"--quiet",
"--output-format=json",
Expand Down Expand Up @@ -186,6 +187,7 @@ def check_file_for_fixes(
sys.executable,
"-m",
"ruff",
"check",
"--fix-only",
"--exit-zero",
*([f"--config={config}"] if config else []),
Expand Down

0 comments on commit 9a3c8c7

Please sign in to comment.