-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Labels
bugSomething isn't workingSomething isn't workingfixesRelated to suggested fixes for violationsRelated to suggested fixes for violations
Description
PT006 breaks test, removes tuple just from argnames but not from argvalues
@pytest.mark.parametrize(("thresholds",), [([0.6, 0.3],), ([],)])
is replaced as
@pytest.mark.parametrize("thresholds", [([0.6, 0.3],), ([],)])
so now thresholds contains tuple of list. Shouldn't the fix remove also the brackets inside so the result would be:
@pytest.mark.parametrize("thresholds", [[0.6, 0.3], []])
command:
ruff tests/test.py --fix
ruff 0.4.2, no special settings needed, python 3.9
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfixesRelated to suggested fixes for violationsRelated to suggested fixes for violations