deprecate hook configuration via marks/attributes
fixes #4562
must be merged after #8508
damn, i dida git, will fix when backawake
@nicoddemus i finally got around reiterating this, please have a look
@nicoddemus as far as i can tell, the only blocker is https://github.com/pytest-dev/pytest-cov/pull/549
That has just been merged. 👍
I'm afraid the error messages this generates for hookimpls are almost unusable due to having way too little information where the culprit is: https://github.com/pytest-dev/pytest/issues/10342
Quick analysis of the impact of this:
- attributes (seems to be very rare)
- marks (rather common!)
FWIW, I submitted PRs to the affected plugins I use:
- https://github.com/ionelmc/pytest-benchmark/pull/224
- https://github.com/pytest-dev/pytest-qt/pull/455
- https://github.com/pytest-dev/pytest-instafail/pull/26
The impact is not surprising, this was intended to be deprecate back when the new decorators came up
Instead the old way was cargo culted all the way till now