Files
python-pytest-examples/ruff05.patch
2024-07-01 18:03:41 +00:00

14 lines
614 B
Diff

Index: pytest-examples-0.0.10/pytest_examples/lint.py
===================================================================
--- pytest-examples-0.0.10.orig/pytest_examples/lint.py
+++ pytest-examples-0.0.10/pytest_examples/lint.py
@@ -47,7 +47,7 @@ def ruff_check(
*,
extra_ruff_args: tuple[str, ...] = (),
) -> str:
- args = 'ruff', '-', *config.ruff_config(), *extra_ruff_args
+ args = 'ruff', 'check', '-', *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=2)