Summary
Consider the following code:
import pytest
@pytest.mark.parametrize("_foo", [1, 2, 3])
def test_thingy(_foo):
print("hello")
When I run ruff check --select=PT019 on it, it fails. However, according to a pytest dev replying to my question here, a value injected via parametrize is a fixture only due to an implementation detail that should not be relied upon. Therefore, it is inappropriate to use @pytest.mark.usefixture on it.
Version
ruff 0.11.6