Skip to content
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

Consistent code formatting & docstrings #12

Open
k-sys opened this issue Jul 3, 2020 · 4 comments
Open

Consistent code formatting & docstrings #12

k-sys opened this issue Jul 3, 2020 · 4 comments

Comments

@k-sys
Copy link

k-sys commented Jul 3, 2020

No description provided.

@michaelosthege
Copy link
Collaborator

michaelosthege commented Jul 5, 2020

Wherever I write something, I add typing annotations and numpy-style docstrings.

Eventually, we could use black-formatting.

@k-sys
Copy link
Author

k-sys commented Jul 6, 2020

I've been enjoying black and think we should use that going forward. I didn't realize numpy had a style but that's a great resource doc thank you for sharing.

I assume doc strings we can update over time – for black formatting, what is the best way to make this happen other than fyi to contributors?

@michaelosthege
Copy link
Collaborator

In PyMC3 we decided to black only the files that are touched by a PR:

  • keeps line history more intact
  • reduces git conflicts in ongoing PRs

That and docstring style should go into CONTRIBUTING.md and PR template (#11)

@mikeyk
Copy link
Contributor

mikeyk commented Jul 6, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants