Skip to content

Commit 623ab1e

Browse files
author
bscriver123 (aider)
committed
fix: Add --fix option to ruff check for automatic import sorting fixes
1 parent 9a18f65 commit 623ab1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytest_examples/lint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def ruff_check(
4949
extra_ruff_args: tuple[str, ...] = (),
5050
) -> str:
5151
ruff = find_ruff_bin()
52-
args = ruff, 'check', '-', *config.ruff_config(), *extra_ruff_args
52+
args = ruff, 'check', '--fix', '-', *config.ruff_config(), *extra_ruff_args
5353

5454
p = Popen(args, stdin=PIPE, stdout=PIPE, stderr=PIPE, universal_newlines=True)
5555
stdout, stderr = p.communicate(example.source, timeout=10)

0 commit comments

Comments
 (0)