Skip to content

Commit 5b49efd

Browse files
committed
CONTRIBUTING.md
1 parent 5360463 commit 5b49efd

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

CONTRIBUTING.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# How to contribute
2+
3+
Make sure you have read the [doc on code style](
4+
https://docs.fast.ai/dev/style.html) first. (Note that we don't follow PEP8, but instead follow a coding style designed specifically for numerical and interactive programming.)
5+
6+
## Updating README.md
7+
8+
Similar to updating Python source code files, to update the `README.md` file you will need to edit a notebook file, specifically `nbs/index.ipynb`.
9+
10+
However, there are a couple of extra dependencies that you need to install first in order to make this work properly. Go to the directory you cloned the repo to, and type:
11+
12+
```
13+
pip install -e '.[dev]'
14+
```
15+
16+
And install quarto too:
17+
18+
```
19+
nbdev_install_quarto
20+
```
21+
22+
Then, after you make subsequent changes to `nbs/index.ipynb`, run the following from the repo's root directory to (re)build `README.md`:
23+
24+
```
25+
nbdev_readme
26+
```
27+
28+
## Did you find a bug?
29+
30+
* Ensure the bug was not already reported by searching on GitHub under Issues.
31+
* If you're unable to find an open issue addressing the problem, open a new one. Be sure to include a title and clear description, as much relevant information as possible, and a code sample or an executable test case demonstrating the expected behavior that is not occurring.
32+
* Be sure to add the complete error messages.
33+
34+
### Did you write a patch that fixes a bug?
35+
36+
* Open a new GitHub pull request with the patch.
37+
* Ensure that your PR includes a test that fails without your patch, and pass with it.
38+
* Ensure the PR description clearly describes the problem and solution. Include the relevant issue number if applicable.
39+
40+
## PR submission guidelines
41+
42+
* Keep each PR focused. While it's more convenient, do not combine several unrelated fixes together. Create as many branches as needed to keep each PR focused.
43+
* Do not mix style changes/fixes with "functional" changes. It's very difficult to review such PRs and will most likely get rejected.
44+
* Do not add/remove vertical whitespace. Preserve the original style of the file you edit as much as you can.
45+
* Do not turn an already-submitted PR into your development playground. If after you submit a PR, you discover that more work is needed: close the PR, do the required work, and then submit a new PR. Otherwise each of your commits requires attention from maintainers of the project.
46+
* If, however, you submit a PR and receive a request for changes, you should proceed with commits inside that PR, so that the maintainer can see the incremental fixes and won't need to review the whole PR again. In the exception case where you realize it'll take many many commits to complete the requests, then it's probably best to close the PR, do the work, and then submit it again. Use common sense where you'd choose one way over another.
47+
48+
## Do you want to contribute to the documentation?
49+
50+
* Docs are automatically created from the notebooks in the nbs folder.
51+

0 commit comments

Comments
 (0)