forked from pool/python-pytest-examples
- add ruff05.patch: fix exception with ruff 0.5.0
- add test-ruff-0.1.0.patch to fix tests with ruvv-0.1.0 - initial package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-examples?expand=0&rev=12
This commit is contained in:
13
ruff05.patch
Normal file
13
ruff05.patch
Normal file
@@ -0,0 +1,13 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user