Skip to content

Commit 4f0e3a0

Browse files
authored
ruff.check: force pylint output format for ruff >= 0.12.9 compatibility (#541)
1 parent c91b046 commit 4f0e3a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diff_cover/violationsreporters/violations_reporter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ def measured_lines(self, src_path):
579579
# path/to/file.py:328:27 F541 [*] f-string without any placeholders
580580
# path/to/file.py:418:26 F841 [*] Local variable `e` is assigned to but never used
581581
expression=r"^([^:]+):(\d+):\d*:? (.*)$",
582-
command_to_check_install=["ruff", "--version"],
582+
command_to_check_install=["ruff", "--version", "--output-format", "pylint"],
583583
# ruff exit code is 1 if there are violations
584584
# https://docs.astral.sh/ruff/linter/#exit-codes
585585
exit_codes=[0, 1],

0 commit comments

Comments
 (0)