mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
[pre-commit.ci] pre-commit autoupdate (#10906)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -22,7 +22,7 @@ repos:
|
|||||||
- id: sort-simple-yaml
|
- id: sort-simple-yaml
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- repo: https://github.com/astral-sh/ruff-pre-commit
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
rev: 'v0.14.2'
|
rev: 'v0.14.3'
|
||||||
hooks:
|
hooks:
|
||||||
- id: ruff-check
|
- id: ruff-check
|
||||||
args: [--fix, --exit-non-zero-on-fix]
|
args: [--fix, --exit-non-zero-on-fix]
|
||||||
|
|||||||
@@ -158,7 +158,7 @@ def make_bench(request):
|
|||||||
# pytest >= 8.4.0
|
# pytest >= 8.4.0
|
||||||
wrapped_func = fixture_function._get_wrapped_function()
|
wrapped_func = fixture_function._get_wrapped_function()
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
wrapped_func = fixture_function.__pytest_wrapped__.obj # ty: ignore[unresolved-attribute]
|
wrapped_func = fixture_function.__pytest_wrapped__.obj # type: ignore[attr-defined] # ty: ignore[unresolved-attribute]
|
||||||
assert inspect.isgeneratorfunction(wrapped_func)
|
assert inspect.isgeneratorfunction(wrapped_func)
|
||||||
|
|
||||||
generator = wrapped_func(request)
|
generator = wrapped_func(request)
|
||||||
|
|||||||
Reference in New Issue
Block a user