ruff
fd9e7968 - [`flake8-pytest-style`] Add an autofix for `PT020` (#27993)

Commit
76 days ago
[`flake8-pytest-style`] Add an autofix for `PT020` (#27993) ## Summary Following discussion in https://github.com/pytest-dev/pytest/pull/14755. where we consider deleting the function in pytest 10. It's better if an autofix exists. I marked it as safe becuase ``fixture`` is equivalent afaiu. (Probably better to wait for a decision in the other issue to document it in this PR if it's removed in pytest 10) ## Test Plan Took example with NPY003's implementation, tested alias for yield_fixture and pytest, and various imports, used bare, with parens, with args, with trailing comment, and inside a class.
Parents
Loading