Skip to content

Commit 185a579

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 7bb5605 commit 185a579

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
@@ -368,7 +368,7 @@ def test_do_not_prompt_for_authentication(
368368
)
369369
@pytest.fixture(params=(True, False), ids=("auth_needed", "auth_not_needed"))
370370
def auth_needed(request: pytest.FixtureRequest) -> bool:
371-
return request.param # type: ignore[attr-defined]
371+
return request.param
372372

373373

374374
@pytest.fixture(
@@ -390,7 +390,7 @@ def flags(request: pytest.FixtureRequest, auth_needed: bool) -> typing.List[str]
390390
no_input,
391391
force_keyring,
392392
xfail,
393-
) = request.param # type: ignore[attr-defined]
393+
) = request.param
394394

395395
flags = []
396396
if no_input:

0 commit comments

Comments
 (0)