-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
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
deprecate hook configuration via marks/attributes #9118
deprecate hook configuration via marks/attributes #9118
Conversation
Noticed while reviewing pytest-dev/pytest#9118
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @RonnyPfannschmidt, this issue wasn't even in my radar. 😁
Left some comments, please take a look.
Noticed while reviewing pytest-dev/pytest#9118
Noticed while reviewing pytest-dev/pytest#9118
a445d0f
to
430ac90
Compare
This comment has been minimized.
This comment has been minimized.
430ac90
to
985bd3e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments on the docs/texts. I haven't reviewed the code, will try to later.
d2e9fd5
to
c53e07c
Compare
e7d30c9
to
df09799
Compare
df09799
to
34665e7
Compare
34665e7
to
825dae2
Compare
2dabd1b
to
38f4561
Compare
3417054
to
ee7c8bf
Compare
ee7c8bf
to
92bf2ee
Compare
22a9238
to
4052ce6
Compare
@nicoddemus i finally got around reiterating this, please have a look |
83ca2ce
to
807e287
Compare
807e287
to
ae9dbf5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
@nicoddemus as far as i can tell, the only blocker is pytest-dev/pytest-cov#549 |
The old way using marks is being deprecated in pytest 7.2: pytest-dev/pytest#9118
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: #10342 |
Quick analysis of the impact of this:
FWIW, I submitted PRs to the affected plugins I use: |
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 |
fixes #4562
must be merged after #8508