-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
- ruff version: 0.0.254
Hi!
Thanks for the amazing application!
Rule PT016 suggests adding a reason when using pytest.fail(), but when using a keyword argument it requires the deprecated msg keyword instead of the new reason kwarg introduced in v7 (https://docs.pytest.org/en/7.1.x/reference/reference.html#pytest.fail).
pytest.fail("reason") # OK
pytest.fail(msg="reason") # OK
pytest.fail(reason="reason") # Error PT016The current behavior is the same as flake8-pytest-style (https://github.com/m-burst/flake8-pytest-style/blob/master/docs/rules/PT016.md), but I do not see a reason to stay with deprecated behavior.
Cheers!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working