diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 89246351..11a967c7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,7 @@ repos: - id: black - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.257 + rev: v0.0.259 hooks: - id: ruff args: ["--fix"] diff --git a/test/test_dependency_versions.py b/test/test_dependency_versions.py index d447706b..269952e5 100644 --- a/test/test_dependency_versions.py +++ b/test/test_dependency_versions.py @@ -45,9 +45,7 @@ VERSION_REGEX = r"([\w-]+)==([^\s]+)" def get_versions_from_constraint_file(constraint_file): constraint_file_text = constraint_file.read_text(encoding="utf8") - return { - package: version for package, version in re.findall(VERSION_REGEX, constraint_file_text) - } + return dict(re.findall(VERSION_REGEX, constraint_file_text)) @pytest.mark.parametrize("python_version", ["3.6", "3.8", "3.9"])