Repository navigation
Update client.py - #4517
Update client.py#4517tharris72 wants to merge 36 commits into
Conversation
Adding the Returns numpy style documentation to the doc strings. This is for issue dask#3578
|
Please mark this PR as DRAFT and let us know when you are done. |
more updates to the doc strings
jrbourbeau
left a comment
There was a problem hiding this comment.
Thanks for the PR @tharris72! Distributed uses numpydoc for docstring formatting. I recommend looking through https://numpydoc.readthedocs.io/en/latest/format.html to make sure that these docstrings conform to numpydoc's style guide. Additionally, we also use flake8 and black for code formatting. Here's the relevant section in the contributing docs for how to install / use flake8 and black https://docs.dask.org/en/latest/develop.html#code-formatting. Let us know if you have any questions
modified: distributed/client.py testing out the commit
modified: distributed/client.py
modified: distributed/client.py modified: distributed/utils.py
|
Thank you for doing this @tharris72 . Let us know when you are done. This is great to see. |
|
I hope to work on this some more next week and hopefully I can finish it. I will keep you guys posted. |
|
Sounds good, let us know if you have questions or need any additional input from us 👍 |
modified: distributed/client.py modified: distributed/pubsub.py
|
I noticed that some of the _ methods have doc strings while others didn't. I didn't add any docstrings to the _ private methods. If you guys want me to add them let me know. I didn't use flake8 and black to format the code. I will see if I can install them on my computer and do the check/formatting sometime later this week or next week. If everything looks good can you recommend another first issue or something else I could contribute to? |
|
I just came across this @tharris72 and it looks good! You don't need to worry about adding docstrings to the private methods. It looks like this just needs to have main merged in and have flake8 and black run on it. |
|
Can one of the admins verify this patch? |
Fixing the doc string warnings from flake8
more flake8 updates
more flake8 updates
more flake8 updates
more flake8 updates
more flake8 updates
more flake8 updates
more flake8 updates
more flake8 updates
ran black
I ran flake8 and black. The code changes are done but there is an import error I'm guessing something got changed. I'm not sure how to resolve this. I looked in 'compatibility' and there is no apply |
fixed the 'import apply' error
|
|
It looks like there are a few last conflicts. Let me know if you would like me to push to your fork. |
You can push it and I will try to fix them. |
|
Ok I just pushed to your branch, so make sure to pull before doing any work. |
Testing to see if uncommenting line 4 fixes the bug
|
I believe I merged the changes and I uncommented out a line in the github actions yaml file
I believe I merged the changes and I uncommented out a line in the github actions yaml file |
replacing the tmpfile from .utils with tempfile.TemporaryFile in the standard library
|
It looks like there were some issues with the merge that you did, would you like me to push again? If you look at the diff: https://github.com/dask/distributed/pull/4517/files you'll see that there are a bunch of changes between this branch and main that you didn't intend to include. |
This reverts commit a67b5de. Changes to be committed: modified: distributed/protocol/tests/test_numpy.py
This reverts commit b7aae47. Changes to be committed: modified: distributed/cli/tests/test_dask_scheduler.py
This reverts commit bd1d0a6. Changes to be committed: modified: distributed/cli/tests/test_dask_worker.py
This reverts commit cff7e94. Changes to be committed: modified: distributed/protocol/tests/test_netcdf4.py
This reverts commit 313eefb.
This reverts commit 03bf671.
I tried to revert the changes that were not in client.py. Can you check if the only changes I have are in client.py and if so I think the changes are ready to be merged. Thanks for the help! |
|
I cherry-picked your commits onto a fresh branch. #5670 |
|
@jsignell Thanks for the help! I appreciate it! |
Adding the Returns numpy style documentation to the doc strings. This is for issue #3578.
Testing out the pull request to make sure it works. There are still more doc strings to update.