Skip to content

Commit

Permalink
Use 'ruff check' instead of just 'ruff' (breaking change on ruff).
Browse files Browse the repository at this point in the history
  • Loading branch information
fabioz committed Jan 19, 2025
1 parent a32c052 commit f7c541b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ public String[] call(String[] arg) {
throw new RuntimeException(e);
}
cmdList.add(0, "ruff");
cmdList.add(1, "check");
String[] args = cmdList.toArray(new String[0]);
WriteToStreamHelper.write("Ruff: Executing command line:", out, "python", "-m", args);
SimplePythonRunner runner = new SimplePythonRunner();
Expand All @@ -212,6 +213,7 @@ public String[] call(String[] arg) {
} else {
String ruffExecutable = FileUtils.getFileAbsolutePath(ruffLocation);
cmdList.add(0, ruffExecutable);
cmdList.add(1, "check");

launchProcessCallback = () -> {
String[] args = cmdList.toArray(new String[0]);
Expand Down

0 comments on commit f7c541b

Please sign in to comment.