Skip to content

Commit f0b8016

Browse files
authored
Merge pull request #12 from advanced-security/ruff-check
Added "check" to ruff CLI for latest ruff versions
2 parents 2fc652a + b022740 commit f0b8016

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python_lint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def ruff_linter(target: Path, *_args) -> Optional[dict]:
172172
ruff_exe = "ruff" if sys.platform != "win32" else "ruff.exe"
173173

174174
# call ruff, capture STDOUT and STDERR using subprocess
175-
process = run([ruff_exe, target, "--output-format", "json"], capture_output=True, check=False)
175+
process = run([ruff_exe, "check", target, "--output-format", "json"], capture_output=True, check=False)
176176

177177
if process.stderr:
178178
LOG.error("STDERR: %s", process.stderr.decode("utf-8"))

0 commit comments

Comments
 (0)