-
Notifications
You must be signed in to change notification settings - Fork 0
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
pytest-plugins / Sphinx extensions #10
Comments
I haven't found a plugin that allows regex usage in i.e., This helps you avoid running:
if the tests are spread over multiple modules but are affected by changes under iteration. |
I am particularly interested to see if any of these can be moved upstream from Astropy. Or if Astropy could retire some of them and use something else that is better maintained and more mainstream. pytest
Sphinx |
Tyler's feature request rings a bell (not necessarily regex, but to accept wildcard), but now I can't seem to find it. Point is that it was certainly asked as a feature before and I'm sure would be appreciated by many libraries. |
And I for one will have more incentive and thus time to maintain the plugins above (with the exception of the sphinx-theme, that is extremely old-fashioned and should have been retired a long ago) if: - they are move out from the astropy organization somewhere where infrastructure and its maintenance is valued. - have a wider adoption than a single domain. |
Re: #10 (comment) -- I agree that for wider adoption, they should be moved out of Astropy org since these are not strictly related to astronomy sub-field in science. I will bring this issue to Astropy infrastructure tag-up but I do not foresee any opposition. Thanks! |
Re: astropy theme -- I think Astropy would be really happy to maintain once less theme if we can get a new one to work. 😸 Please also see astropy/astropy-sphinx-theme#29 |
commenting because I can't self-assign. MNE-Python has a couple small sphinx extensions that might be of general interest: |
Neither plugin nor extension, but numpydoc is also very much part of the shared infrastructure. And fixing the single-vs-double backtick issues for parameters in numpydoc would be a nice outcome that helps with doctesting, too: numpy/numpydoc#419 (comment) |
For context, this often rears it's ugly head when sphinx's nitpicky mode is activated, as the parameters enclosed in single backticks (as recommended by the numpydoc style guide) then get wrapped with the default sphinx role (typically |
FYI, I drafted a Anyway, just getting rid of the initial inertia on that ahead of the summit. FWIW, it sounds like the main The other thing is that folks may want features that the main project wouldn't, so defining that first probably makes sense with a test in a very small external plugin codebase to start. |
One thing related that I would be interested in also is infrastructure similar to/tagged on top of (That is related to the fact we need to change how NumPy scalars print.) |
@seberg - There is nothing new under the sun, would be wonderful to implement this issue 😅 scientific-python/pytest-doctestplus#107 |
Another "neither pytest nor sphinx" thing that could be standardized/shared across projects is the website banner saying "warning this is an old version / the development version of this package, please switch to stable docs". The pydata-sphinx-theme has added an announcement banner that is configured in
What are other folks doing? Is it worth trying to standardize/centralize this for the ecosystem? |
Yes, please! I think this should be a built-in feature in pydata-sphinx-theme. It's not too hard to implement, but there are a few subtleties as you'll see on that issue on skimage |
I touched base with upstream about |
Hackmd link for the summit: https://hackmd.io/JL5slkxORA-q7VRN79v1sA
The text was updated successfully, but these errors were encountered: