-
Notifications
You must be signed in to change notification settings - Fork 8
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 contributing guide #198
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## development #198 +/- ##
===============================================
- Coverage 97.23% 97.22% -0.02%
===============================================
Files 15 18 +3
Lines 1484 1622 +138
===============================================
+ Hits 1443 1577 +134
- Misses 41 45 +4 ☔ View full report in Codecov by Sentry. |
@BalzaniEdoardo made some progress on the contributing guide, left the section on adding a new optimizer and basis empty...I'm not as familiar with how those should look happy to update or add anything you think is missing :D |
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.
wow, great, I added some comments on what you did. I am going to tackle the sections that are missing
|
||
```bash | ||
# stage the changes | ||
git add src/nemos/the_changed_file.py |
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.
what's your opinion of using:
git add -u .
for adding any updated file?
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.
My only thought is that sometimes there are files that we don't want people to commit. For example, I often test things in a juypter notebook but I would never want to commit that. I think it is better to have people do git status
and then selectively choose the correct files.
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.
are the notebook are part of the repo?
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 agree it's a bad idea to tell people to use git add .
(though I wasn't aware of -u
, that's a handy flag, and avoids many of the potential problems). but I agree with Caitlin that we want people to be selective in what they add
…os into contributing_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.
This looks really good Caitlin, thanks for putting in the work! I've got some notes, both here and scattered throughout.
- Curious about the changes to the workflow files in .github, what's going on there?
- you used
**_NOTE_**
in several places. I only remarked on it once or twice, but I think there is a supported admonition-like syntax that is probably more what you want here - Small note, and I know I'm guilty of this too (because I use emacs), but we should probably come up with guidance on line wraps in markdown files / blocks. they're inconsistent here (and I know Edoardo and I have done it differently in the past). Should we use line wraps for a single paragraph? if so, what line length? or should every paragraph be a single line?
- You might want to describe releases: what system do we use for coming with version labels, what must be done to create a release
…os into contributing_guide
This prevent triggering the ci on drafts
fixed
I don't have a big opinion on that, up to you
@billbrod can you add some text on that, I think you are the only one that actually played around with "setuptools-scm"? |
CONTRIBUTING.md
Outdated
As mentioned previously, each feature in `nemos` is worked on in a separate branch. This allows multiple people developing multiple features simultaneously, without interfering with each other's work. To create | ||
your own branch, run the following from within your `nemos` directory: | ||
|
||
> **_NOTE:_** Below we are checking out the `development` branch. In terms of the `nemos` contribution workflow cycle, the `development` branch accumulates a series of |
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.
> **_NOTE:_** Below we are checking out the `development` branch. In terms of the `nemos` contribution workflow cycle, the `development` branch accumulates a series of | |
> [!NOTE] Below we are checking out the `development` branch. In terms of the `nemos` contribution workflow cycle, the `development` branch accumulates a series of |
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 looks good to me! Just two small additions I'd like to see:
- I think we should describe tox in CONTRIBUTING somewhere, even if we don't recommend people generally use it. The main reason is because tox is what happens in the test, so it's what people need to make sure passes, and we can link to the
tox.ini
file to show all the commands that are run (whereas this file will likely fall out of date if we change the commands) - For the schematic in
06-glm.md
:- we currently have both png and svg versions of the file, but only the png is used. why are both here?
- is this created manually or scripted? if it's scripted, I think we should just include the script here and run it during the docs build. that will be easier to keep in sync with future changes.
Note that I also pushed some changes myself, double-check whether they all look good to you.
I'll add a paragraph about this
The svg is create by pyreverse but the arrows and boxes placement is not well organized, so i edited it manually. I am keeping the svg around if I'll need more manual edits. If it is not to heavy I would keep it
|
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.
Just the wording changes I proposed, and then this looks goodt o me!
Co-authored-by: William F. Broderick <[email protected]>
Co-authored-by: William F. Broderick <[email protected]>
closes #196
Inspiration from plenoptic contributing guide
Major updates to the contributing guide walking users through how to contribute to
nemos
including:regularizer
, solver method, model, basis)