From a8ee9de738597d453c6ffbb6e6ae021d8c1984fd Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 10 Aug 2023 14:55:06 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- pre_commit_mirror_maker/languages.py | 2 +- tests/languages_test.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pre_commit_mirror_maker/languages.py b/pre_commit_mirror_maker/languages.py index 35e8c2b..ae86d2b 100644 --- a/pre_commit_mirror_maker/languages.py +++ b/pre_commit_mirror_maker/languages.py @@ -4,8 +4,8 @@ import subprocess import urllib.request -from packaging import version from packaging import requirements +from packaging import version def ruby_get_package_versions(package_name: str) -> list[str]: diff --git a/tests/languages_test.py b/tests/languages_test.py index 6dbb961..07c59d8 100644 --- a/tests/languages_test.py +++ b/tests/languages_test.py @@ -22,6 +22,7 @@ def test_python_get_package_version_output(): assert ret assert_all_text(ret) + def test_python_get_package_version_extras_output(): ret = python_get_package_versions('bandit[yaml]') assert ret