Skip to content

Commit f8a3f81

Browse files
authored
Merge branch 'main' into main
2 parents 38c0678 + bc5c4be commit f8a3f81

2 files changed

Lines changed: 29 additions & 10 deletions

File tree

.github/pull_request_template.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1-
Resolves #\<issue_number_goes_here\>
1+
# What does this PR do?
22

3-
<!--- Please check [issues](https://github.com/jax-ml/bonsai/issues) for any pending model implementations. Consider opening issue if none exists. -->
3+
<!--
44
5-
**Reference**
6-
<!--- Link to the reference implementation, research paper, and GitHub issue. -->
5+
Pease read the following carefully so we can make sure your PR is merged
6+
easily.
77
8-
**Checklist**
9-
<!--- Please make sure all checkboxes are ticked before submitting this PR for review. -->
8+
Replace this text block with a description of the change and which issue it
9+
fixes (if applicable). Please also include relevant motivation/context.
10+
-->
11+
12+
Fixes # (issue)
1013

11-
- [ ] I have read the **[Contribution Guidelines](https://github.com/jax-ml/bonsai/blob/main/CONTRIBUTING.md#contributing-a-model)** and used [pre-commit hooks](https://github.com/jax-ml/bonsai/blob/main/CONTRIBUTING.md#linting-and-type-checking) to format this commit.
12-
- [ ] I have added all the necessary **unit tests** for my change. (`run_model.py` for model usage, `test_outputs.py` and/or `model_validation_colab.ipynb` for quality).
13-
- [ ] **(If using an LLM)** I have carefully reviewed and removed all **superfluous comments** or unneeded, commented-out code. Only necessary and functional code remains.
14+
15+
**Checklist**
16+
- [ ] I have read the **[Contribution Guidelines](https://github.com/jax-ml/bonsai/blob/main/CONTRIBUTING.md)** and used [pre-commit hooks](https://github.com/jax-ml/bonsai/blob/main/CONTRIBUTING.md#linting-and-type-checking) to format and squash so that this PR has 1 commit typically.
17+
- [ ] I have added all the necessary **unit tests** for my change (`run_model.py`, `test_outputs.py`, and/or `model_validation_colab.ipynb`).
18+
- [ ] **(Code Quality)** I have reviewed the code and removed all superfluous comments or LLM-generated boilerplate. Only functional, necessary code remains.
1419
- [ ] I have signed the **[Contributor License Agreement (CLA)](https://cla.developers.google.com/about)**.

CONTRIBUTING.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Follow these steps to contribute code:
3232
For more information, please see [Bonsai Pull Request checklist](#bonsai-pull-request-checklist).
3333

3434
2. Fork the Bonsai repository by clicking the **Fork** button on the
35-
[repository page](http://www.github.com/jax-ml/bonsai). This creates
35+
[repository page](https://www.github.com/jax-ml/bonsai). This creates
3636
a copy of the Bonsai repository in your own account.
3737

3838
3. `pip` installing your fork from source. This allows you to modify the code
@@ -125,6 +125,20 @@ Alternatively, manually run a pre-commit hook.
125125
pre-commit run --all-files
126126
```
127127

128+
### Single-change commits and pull requests
129+
130+
We follow [jax's convention](https://docs.jax.dev/en/latest/contributing.html#single-change-commits-and-pull-requests) in single-change commits in pull requests.
131+
A git commit ought to be a self-contained, single change with a descriptive
132+
message. This helps with review and with identifying or reverting changes if
133+
issues are uncovered later on.
134+
135+
**Pull requests typically comprise a single git commit.** (In some cases, for
136+
instance for large refactors or internal rewrites, they may contain several.)
137+
In preparing a pull request for review, you may need to squash together
138+
multiple commits. We ask that you do this prior to sending the PR for review if
139+
possible. The `git rebase -i` command might be useful to this end.
140+
141+
128142
## Contributing a model
129143

130144
We welcome contribution of new models that may be beneficial for the JAX community

0 commit comments

Comments
 (0)