We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 tests/test.py --fix
ruff 0.4.2, no special settings needed, python 3.9
The text was updated successfully, but these errors were encountered:
No branches or pull requests
PT006 breaks test, removes tuple just from argnames but not from argvalues
is replaced as
so now thresholds contains tuple of list. Shouldn't the fix remove also the brackets inside so the result would be:
command:
ruff tests/test.py --fix
ruff 0.4.2, no special settings needed, python 3.9
The text was updated successfully, but these errors were encountered: