You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+74-6Lines changed: 74 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ Thank you for your interest in contributing to PyMC and PyMC-experimental!
5
5
This page outlines the steps to follow if you wish to contribute to the pymc-experimental repo and clone the repo locally.
6
6
7
7
## Install locally
8
-
**1**: Create a folder `pymc-devs` in your local machine and follow the [cloning PyMC locally](https://www.pymc.io/projects/docs/en/latest/contributing/pr_tutorial.html).
8
+
**1**: Create a folder `pymc-devs` in your local machine and follow the steps on [cloning PyMC locally](https://www.pymc.io/projects/docs/en/latest/contributing/pr_tutorial.html).
9
9
10
10
Since PyMC-experimental should integrate with the latest version of PyMC, it is recommended that any development work on PyMC-experimental must also work with the latest version of PyMC.
## Git integration [(from PyMC's main page)](https://www.pymc.io/projects/docs/en/latest/contributing/pr_tutorial.html)
33
65
34
66
**1** Develop the feature on your feature branch:
35
67
```
36
68
git checkout -b my-exp-feature
37
69
```
38
70
71
+
**2** Before committing, run pre-commit checks:
72
+
```
73
+
pip install pre-commit
74
+
pre-commit run --all # 👈 to run it manually
75
+
pre-commit install # 👈 to run it automatically before each commit
76
+
```
77
+
78
+
**3** Add changed files using git add and then git commit files:
79
+
```
80
+
git add modified_files
81
+
git commit
82
+
```
83
+
to record your changes locally.
39
84
85
+
**4** After committing, it is a good idea to sync with the base repository in case there have been any changes:
86
+
```
87
+
# pymc
88
+
cd /path/to/pymc-devs/pymc
89
+
git fetch upstream
90
+
git rebase upstream/main
40
91
41
-
You should now have a local copy of PyMC-experimental under `pymc-devs/pymc-experimental`.
92
+
# (pymc-dev team) Please double check this
93
+
pip install -e /path/to/pymc-devs/pymc
94
+
95
+
# pymc-exp
96
+
cd /path/to/pymc-devs/pymc-experimental
97
+
git fetch upstream
98
+
git rebase upstream/main
99
+
```
100
+
Then push the changes to the fork in your GitHub account with:
101
+
```
102
+
git push -u origin my-exp-feature
103
+
```
104
+
105
+
**5** Go to the GitHub web page of your fork of the PyMC repo. Click the ‘Pull request’ button to send your changes to the project’s maintainers for review. This will send a notification to the committers.
106
+
107
+
## Final steps
108
+
109
+
Review contributing guide in [PyMC's main page](https://www.pymc.io/projects/docs/en/latest/contributing/index.html).
42
110
43
-
**Final steps**: Review contributing guide in [PyMC's main page](https://www.pymc.io/projects/docs/en/latest/contributing/index.html).
0 commit comments