Skip to content

Commit 7fd045c

Browse files
author
Dos Moonen
committed
Unpin pytest in .pre-commit-config.yaml and remove type: ignore[attr-defined] comments that are no longer needed as of pytest 7.1.3
1 parent fe03e9c commit 7fd045c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ repos:
4747
additional_dependencies: [
4848
'keyring==23.0.1',
4949
'nox==2021.6.12',
50-
'pytest==7.1.1',
50+
'pytest',
5151
'types-docutils==0.18.3',
5252
'types-setuptools==57.4.14',
5353
'types-freezegun==1.1.9',

tests/functional/test_install_config.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ def test_do_not_prompt_for_authentication(
364364

365365
@pytest.fixture(params=(True, False), ids=("auth_needed", "auth_not_needed"))
366366
def auth_needed(request: pytest.FixtureRequest) -> bool:
367-
return request.param # type: ignore[attr-defined]
367+
return request.param
368368

369369

370370
@pytest.fixture(
@@ -386,7 +386,7 @@ def flags(request: pytest.FixtureRequest, auth_needed: bool) -> typing.List[str]
386386
no_input,
387387
force_keyring,
388388
xfail,
389-
) = request.param # type: ignore[attr-defined]
389+
) = request.param
390390

391391
flags = []
392392
if no_input:

0 commit comments

Comments
 (0)