-
Notifications
You must be signed in to change notification settings - Fork 16
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
Style Guide #19
Style Guide #19
Conversation
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.
This is really nice! Just some minor comments inline. I'd also suggest adding some comments about automatically checking things locally with pre-commit
and how to get that set up. And also adding in some notes about black
and ruff
since those are what we are using to do our verification of these style "recommendations", meaning they are a little more than recommendations and leaning more towards requirements ;)
@greglucas What is your workflow for setting up |
We should definitely add how to set those up and use them to the repository somewhere since they aren't in there yet, sorry about that! I made a rough cut of it in my docs PR: with the gist being pip install .[dev]
# Install the pre-commit hooks
pre-commit install Then every git commit command will run those checks for you before allowing you to commit locally. You can run |
…kdown formatting throughout
Awesome, thanks @greglucas! |
@maxinelasp I added a (blank) section for |
…tead of 80, added instructions for installing pre-commit hooks
I am finished with this draft and this is ready for review! I would like to hear what you all think should be added/removed/changed. |
6. Follow agreed-upon [naming conventions](#naming-conventions) where applicable. | ||
7. Use specific [tools and libraries](#tools-and-library-recommendations) where applicable. | ||
8. Use nominal semantic versioning for [version numbers](#versioning). | ||
9. Follow a specific [release workflow](#release-workflow) when making releases. | ||
|
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.
Would it be appropriate to add a note about testing or documentation here? Or is that not closely related to style? Actually, having a documentation style guide might be a good thing to add... (related to PR #15)
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.
Yeah, now that #15 is merged and we have automated doc builds, I think it makes sense to add a note here about updating the necessary .rst
files when applicable. I'll add that.
Beyond that, and beyond the mention of PEP257
/numpydocs
style, was there something else we could mention?
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.
I think just adding to update or write the documentation as required is all that's needed right now, although I will maybe just write up a documentation specific style guide
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.
Overall looks great, I added a few suggestions but feel free to take them or leave them
I think the content here is great! I just merged the docs PR, so we have a documentation section now. Should we move this into the |
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.
This is looking great so far.
Thanks @maxinelasp! This is a good opportunity to try out this robot ... @all-contributors please add @maxinelasp for the code review! 🙏🏻 |
I've put up a pull request to add @maxinelasp! 🎉 |
@greglucas As long as the style guide is easily findable/accessible, I don't really have a strong opinion on where it should live, so I will refer to whatever you advise on this! |
I think this depends on how we expect users to find this information in the long run. Will they be going through an HTML documentation site, or do we expect them to be browsing the repository for this information? I don't personally know the answer to that, I'd probably lean towards HTML myself, looking at some "contributing" section. Just fine to add this now, and then move it around later once we actually have documentation builds showing up somewhere. |
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
…le-guide Style Guide
This PR adds a project style guide