| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Awesome, thanks!
Sorry, something went wrong.
|
Didn't quite work out as planned, as I didn't see that the not in assertion output also uses _diff_text, but then post-processes the diff to show a nicer output: pytest/src/_pytest/assertion/util.py Lines 590 to 599 in afdf03b Opted to add a dummy_highlighter function to avoid having to special-case this in _diff_text, WDYT? |
Sorry, something went wrong.
Sounds good to me. 👍 |
Sorry, something went wrong.
There was a problem hiding this comment.
Looks great, thanks!
Sorry, something went wrong.
There was a problem hiding this comment.
awesome PR, this is a very welcome change
I think it would make sense to document the extra somewhere. explain why it exists/what it does
Sorry, something went wrong.
I don't think there's a good place for this in the docs, especially because we don't do this kind of thing for any of the other dependencies either. And if you see it in action (and/or know what Pygments does), I think it's kind of obvious. |
Sorry, something went wrong.
I have no idea what pygments is/does, and I have no idea how to discover if a package has any extras or not. I think not stating that this extra functionality is available would be a disservice to your users 🙂 |
Sorry, something went wrong.
|
This PR makes it a dependency, not an extra. You don't need to know it exists, you will just get syntax highlighting after installing pytest. |
Sorry, something went wrong.
|
oh, my mistake! sorry, okay that's great! |
Sorry, something went wrong.
|
@Pierre-Sassoulas @Zac-HD @RonnyPfannschmidt Do you have any objections/concerns with adding Pygments as a default dependency (at least until PEP 771 – Default Extras for Python Software Packages | peps.python.org is a thing), or should I merge this? (Sorry for the explicit ping - not asking for a full review as I think we have this covered, just for an opinion on the dependency because I'd like to give everyone a chance to speak up if there is some implication I didn't consider) |
Sorry, something went wrong.
|
In general I prefer minimal dependencies, but I think the case for Pygments is strong enough to add it in this case. If we do get a default-extras PEP I'd be keen to move it to that and make sure we test without it too though. |
Sorry, something went wrong.
The PEP is now up for discussion, please leave a comment if you'd like to add your support or give other feedback: https://discuss.python.org/t/pep-771-default-extras-for-python-software-packages/79706 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.