-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Update dev guide #5810
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
Update dev guide #5810
Conversation
That is perfectly fine with me, I also prefer this style generally
To close the issue all pages should be updated, independently of having |
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.
The developer distribution part looks good, just an issue with mentioning aeppl
docs/source/contributing/developer_guide_implementing_distribution.md
Outdated
Show resolved
Hide resolved
a98061a
to
c104514
Compare
@ricardoV94 I updated the beginning of the I stopped where it got more detailed on Large parts of that document are written in the "I" perspective and talk about things that are no longer relevant. Generally, I would prefer to delete large sections instead of keeping things that are outdated or misleading. We could also move some submodule-specific developer documentation such as the "Dynamic HMC" or "Variational Inference" sections into |
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.
We could also move some submodule-specific developer documentation such as the "Dynamic HMC" or "Variational Inference" sections into README.md files that are located in the corresponding subfolders.
Maybe that would help to keep them aligned with the implementation while keeping the docs focused on user API ?
I always advocate for having documentation in the docs. Pages outside the "contributing" navbar section have users as target audience, pages inside this section have developers and contributors as target audience. IMO, having the docs close or even in the same file has a negligible effect on keeping them updated when compared to making sure this is done as part of the review process. i.e. even docstrings that are as close as possible to the implementation still end up outdated quite often
cc @danhphan I think this should fix some of the issues you mentioned on the running tests page. Is there something else you think is missing?
@@ -1,6 +1,6 @@ | |||
# Implementing a Distribution |
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.
the import paths need to be fixed here in multiple places. i.e. pymc.Distribution
instead of pymc.distributions.Distribution
docs/source/contributing/developer_guide_implementing_distribution.md
Outdated
Show resolved
Hide resolved
I formatted the dev guide as a Markdown file to make it easier to update. I only dealt with the beginning, but I wont have the time to continue with the rest. |
Hi @OriolAbril I think it looks good now. Thanks mate :) |
Can we merge this? |
The changes to the dev guide look good. We will probably want to merge this with the new document that is being added in #5721 but for now we can keep both. |
Nevermind that file is still too outdated...: https://pymc--5810.org.readthedocs.build/en/5810/contributing/developer_guide.html?highlight=developer |
Why is this not a NB? |
Maybe we'll remove it for now? |
Let's keep the file around but not show it in the docs? Is this possible @OriolAbril |
Yes, it is possible, we just need to add
at the top of the file and remove it from the toctree in https://github.com/pymc-devs/pymc/blob/main/docs/source/contributing/index.md which seems to have happened already |
@OriolAbril can you fix the precommit here? The passage is written to literally have the URLs in there, but the pre-commit doesn't allow it. |
Updated the doc (that I copied over unmodified not long ago while fixing the website and navbar) and added the file to the pre-commit exclusion for the cross-reference task. Here the urls must be present, so it needs to be excluded from that check |
/pre-commit-run |
Ok, so the page is now orphaned, and git conflicts were resolved. Can we merge now? Because this PR adds new content on contributing pages that were previously filled with ToDo placeholders. |
I went over the files under
/docs/source/contributing/*
except the ones that had an:orphan:
line at the top.I wrote the instructions on running the test suite and fixed typos in several places.
For the guide on implementing distributions I updated it to the best of my knowledge, but here @ricardoV94 should fact-check me.
Closes #5346
Some remarks that generalize to other pages:
packages
" to be consistent w.r.t. capitalization and style:numpy
scipy
pymc
aesara
4.x
" we should write "PyMC>=4.0.0
" so we don't have to update these lines with the next major release.git diff
a lot easier to work with. (Only double line-breaks become line breaks in the rendered output.)