File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1
1
repos :
2
2
- repo : https://github.com/astral-sh/ruff-pre-commit
3
- rev : " v0.9.7 "
3
+ rev : " v0.9.9 "
4
4
hooks :
5
5
- id : ruff
6
6
args : ["--fix"]
12
12
- id : end-of-file-fixer
13
13
- id : check-yaml
14
14
- repo : https://github.com/woodruffw/zizmor-pre-commit
15
- rev : v1.3 .1
15
+ rev : v1.4 .1
16
16
hooks :
17
17
- id : zizmor
18
18
- repo : https://github.com/adamchainz/blacken-docs
48
48
# on <3.11
49
49
- exceptiongroup>=1.0.0rc8
50
50
- repo : https://github.com/tox-dev/pyproject-fmt
51
- rev : " v2.5.0 "
51
+ rev : " v2.5.1 "
52
52
hooks :
53
53
- id : pyproject-fmt
54
54
# https://pyproject-fmt.readthedocs.io/en/latest/#calculating-max-supported-python-version
Original file line number Diff line number Diff line change @@ -1017,7 +1017,7 @@ def validate_exc(exc: type[E]) -> type[E]:
1017
1017
raise TypeError (f"{ func !r} object (type: { type (func )} ) must be callable" )
1018
1018
try :
1019
1019
func (* args [1 :], ** kwargs )
1020
- except expected_exceptions as e :
1020
+ except expected_exceptions as e : # pylint: disable=catching-non-exception
1021
1021
return _pytest ._code .ExceptionInfo .from_exception (e )
1022
1022
fail (message )
1023
1023
Original file line number Diff line number Diff line change @@ -999,14 +999,14 @@ def test_calls_showall_durationsmin_verbose(
999
999
def check_tests_in_output (
1000
1000
lines : Sequence [str ], * expected_test_numbers : int , number_of_tests : int = 3
1001
1001
) -> None :
1002
- found_test_numbers = set (
1002
+ found_test_numbers = {
1003
1003
test_number
1004
1004
for test_number in range (1 , number_of_tests + 1 )
1005
1005
if any (
1006
1006
line .endswith (f"test_{ test_number } " ) and " call " in line
1007
1007
for line in lines
1008
1008
)
1009
- )
1009
+ }
1010
1010
assert found_test_numbers == set (expected_test_numbers )
1011
1011
1012
1012
def test_with_deselected (self , pytester : Pytester , mock_timing ) -> None :
You can’t perform that action at this time.
0 commit comments