diff --git a/pytest_examples/lint.py b/pytest_examples/lint.py index cec01cb..ccd13cc 100644 --- a/pytest_examples/lint.py +++ b/pytest_examples/lint.py @@ -49,7 +49,7 @@ def ruff_check( extra_ruff_args: tuple[str, ...] = (), ) -> str: ruff = find_ruff_bin() - args = ruff, 'check', '-', *config.ruff_config(), *extra_ruff_args + args = ruff, 'check', '--fix', '-', *config.ruff_config(), *extra_ruff_args p = Popen(args, stdin=PIPE, stdout=PIPE, stderr=PIPE, universal_newlines=True) stdout, stderr = p.communicate(example.source, timeout=10)