Skip to content

Commit d35e495

Browse files
committed
Enforce minimum python version
1 parent 0562c0a commit d35e495

5 files changed

Lines changed: 8 additions & 6 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,3 +165,4 @@ exclude = ["doc/static/uml/generate_diagram.py"]
165165
standard = ["dfetch", "features"]
166166
reportMissingImports = false
167167
reportMissingModuleSource = false
168+
pythonVersion = "3.9"

tests/test_manifest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ def test_get_childmanifests(name, manifest_paths) -> None:
150150
assert len(found_childmanifests) == len(manifest_paths)
151151

152152
for path, call in zip(
153-
manifest_paths, manifest_mock.from_file.call_args_list, strict=True
153+
manifest_paths,
154+
manifest_mock.from_file.call_args_list, # , strict=True
154155
):
155156
assert os.path.realpath(path) == call[0][0]
156157

tests/test_svn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def test_externals(name, externals, expectations):
142142
parsed_externals = SvnRepo.externals()
143143

144144
for actual, expected in zip(
145-
parsed_externals, expectations, strict=True
145+
parsed_externals, expectations # , strict=True
146146
):
147147
assert actual == expected
148148

tests/test_update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def test_create_menu():
8989
if action.option_strings
9090
],
9191
options,
92-
strict=True,
92+
# strict=True,
9393
):
9494
assert action.option_strings == expected_options
9595

tests/test_vcs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# mypy: ignore-errors
44
# flake8: noqa
55

6-
from typing import Optional
6+
from typing import Optional, Union
77
from unittest.mock import patch
88

99
import pytest
@@ -99,10 +99,10 @@ def get_default_branch(self):
9999
)
100100
def test_check_wanted_with_local(
101101
name: str,
102-
given_on_disk: Version | None,
102+
given_on_disk: Union[Version, None],
103103
given_wanted: Version,
104104
expect_wanted: Version,
105-
expect_have: Version | None,
105+
expect_have: Union[Version, None],
106106
):
107107
with patch("dfetch.project.vcs.os.path.exists") as mocked_path_exists:
108108
with patch("dfetch.project.vcs.Metadata.from_file") as mocked_metadata:

0 commit comments

Comments
 (0)