Skip to content

Commit d622fdb

Browse files
Merge pull request #13271 from pytest-dev/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents bfe0c83 + a7479ce commit d622fdb

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/astral-sh/ruff-pre-commit
3-
rev: "v0.9.7"
3+
rev: "v0.9.9"
44
hooks:
55
- id: ruff
66
args: ["--fix"]
@@ -12,7 +12,7 @@ repos:
1212
- id: end-of-file-fixer
1313
- id: check-yaml
1414
- repo: https://github.com/woodruffw/zizmor-pre-commit
15-
rev: v1.3.1
15+
rev: v1.4.1
1616
hooks:
1717
- id: zizmor
1818
- repo: https://github.com/adamchainz/blacken-docs
@@ -48,7 +48,7 @@ repos:
4848
# on <3.11
4949
- exceptiongroup>=1.0.0rc8
5050
- repo: https://github.com/tox-dev/pyproject-fmt
51-
rev: "v2.5.0"
51+
rev: "v2.5.1"
5252
hooks:
5353
- id: pyproject-fmt
5454
# https://pyproject-fmt.readthedocs.io/en/latest/#calculating-max-supported-python-version

src/_pytest/python_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1017,7 +1017,7 @@ def validate_exc(exc: type[E]) -> type[E]:
10171017
raise TypeError(f"{func!r} object (type: {type(func)}) must be callable")
10181018
try:
10191019
func(*args[1:], **kwargs)
1020-
except expected_exceptions as e:
1020+
except expected_exceptions as e: # pylint: disable=catching-non-exception
10211021
return _pytest._code.ExceptionInfo.from_exception(e)
10221022
fail(message)
10231023

testing/acceptance_test.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -999,14 +999,14 @@ def test_calls_showall_durationsmin_verbose(
999999
def check_tests_in_output(
10001000
lines: Sequence[str], *expected_test_numbers: int, number_of_tests: int = 3
10011001
) -> None:
1002-
found_test_numbers = set(
1002+
found_test_numbers = {
10031003
test_number
10041004
for test_number in range(1, number_of_tests + 1)
10051005
if any(
10061006
line.endswith(f"test_{test_number}") and " call " in line
10071007
for line in lines
10081008
)
1009-
)
1009+
}
10101010
assert found_test_numbers == set(expected_test_numbers)
10111011

10121012
def test_with_deselected(self, pytester: Pytester, mock_timing) -> None:

0 commit comments

Comments
 (0)