chore: use Ruff (#1405)
chore: use ruff Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
@@ -61,8 +61,8 @@ def test_prepare_command():
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"wheel,identifier",
|
||||
(
|
||||
("wheel", "identifier"),
|
||||
[
|
||||
("foo-0.1-cp38-abi3-win_amd64.whl", "cp310-win_amd64"),
|
||||
("foo-0.1-cp38-abi3-macosx_11_0_x86_64.whl", "cp310-macosx_x86_64"),
|
||||
("foo-0.1-cp38-abi3-manylinux2014_x86_64.whl", "cp310-manylinux_x86_64"),
|
||||
@@ -72,7 +72,7 @@ def test_prepare_command():
|
||||
("foo-0.1-py3-none-win_amd64.whl", "cp310-win_amd64"),
|
||||
("foo-0.1-py38-none-win_amd64.whl", "cp310-win_amd64"),
|
||||
("foo-0.1-py38-none-win_amd64.whl", "pp310-win_amd64"),
|
||||
),
|
||||
],
|
||||
)
|
||||
def test_find_compatible_wheel_found(wheel: str, identifier: str):
|
||||
wheel_ = PurePath(wheel)
|
||||
@@ -81,8 +81,8 @@ def test_find_compatible_wheel_found(wheel: str, identifier: str):
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"wheel,identifier",
|
||||
(
|
||||
("wheel", "identifier"),
|
||||
[
|
||||
("foo-0.1-cp38-abi3-win_amd64.whl", "cp310-win32"),
|
||||
("foo-0.1-cp38-abi3-win_amd64.whl", "cp37-win_amd64"),
|
||||
("foo-0.1-cp38-abi3-macosx_11_0_x86_64.whl", "cp310-macosx_universal2"),
|
||||
@@ -92,7 +92,7 @@ def test_find_compatible_wheel_found(wheel: str, identifier: str):
|
||||
("foo-0.1-py38-none-win_amd64.whl", "cp37-win_amd64"),
|
||||
("foo-0.1-py38-none-win_amd64.whl", "pp37-win_amd64"),
|
||||
("foo-0.1-cp38-cp38-win_amd64.whl", "cp310-win_amd64"),
|
||||
),
|
||||
],
|
||||
)
|
||||
def test_find_compatible_wheel_not_found(wheel: str, identifier: str):
|
||||
assert find_compatible_wheel([PurePath(wheel)], identifier) is None
|
||||
|
||||
Reference in New Issue
Block a user