-
-
Notifications
You must be signed in to change notification settings - Fork 417
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
Contributing code via pull requests #1804
Changes from 1 commit
b35ac09
3a9731a
691eafb
067b5af
d584649
a8e9d04
f17d17e
5a6e541
7c2c203
b57e169
37ed884
17376e6
3d267d3
8f431b3
f7538db
c5604bc
f5d8464
aebdfef
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,63 +77,63 @@ Section in construction | |
|
||
# Steps | ||
|
||
* Fork the [project repository](https://github.com/arviz-devs/arviz/) by clicking on the 'Fork' button near the top right of the main repository page. This creates a copy of the code under your GitHub user account. | ||
1. Fork the [project repository](https://github.com/arviz-devs/arviz/) by clicking on the 'Fork' button near the top right of the main repository page. This creates a copy of the code under your GitHub user account. | ||
|
||
* Clone your fork of the ArviZ repo from your GitHub account to your local disk. | ||
2. Clone your fork of the ArviZ repo from your GitHub account to your local disk. | ||
|
||
::::{tab-set} | ||
::::{tab-set} | ||
|
||
:::{tab-item} SSH | ||
:sync: ssh | ||
:::{tab-item} SSH | ||
:sync: ssh | ||
|
||
``` | ||
$ git clone git@github.com:<your GitHub handle>/arviz.git | ||
``` | ||
::: | ||
``` | ||
$ git clone git@github.com:<your GitHub handle>/arviz.git | ||
``` | ||
::: | ||
|
||
:::{tab-item} HTTPS | ||
:sync: https | ||
:::{tab-item} HTTPS | ||
:sync: https | ||
|
||
``` | ||
$ git clone https://github.com/<your GitHub handle>/arviz.git | ||
``` | ||
::: | ||
``` | ||
$ git clone https://github.com/<your GitHub handle>/arviz.git | ||
``` | ||
::: | ||
|
||
:::: | ||
:::: | ||
|
||
* Navigate to your arviz directory and add the base repository as a remote: | ||
3. Navigate to your arviz directory and add the base repository as a remote: | ||
|
||
::::{tab-set} | ||
::::{tab-set} | ||
|
||
:::{tab-item} SSH | ||
:sync: ssh | ||
:::{tab-item} SSH | ||
:sync: ssh | ||
|
||
``` | ||
$ cd arviz | ||
$ git remote add upstream git@github.com:arviz-devs/arviz.git | ||
``` | ||
::: | ||
``` | ||
$ cd arviz | ||
$ git remote add upstream git@github.com:arviz-devs/arviz.git | ||
``` | ||
::: | ||
|
||
:::{tab-item} HTTPS | ||
:sync: https | ||
:::{tab-item} HTTPS | ||
:sync: https | ||
|
||
``` | ||
$ cd arviz | ||
$ git remote add upstream https://github.com/arviz-devs/arviz | ||
``` | ||
::: | ||
``` | ||
$ cd arviz | ||
$ git remote add upstream https://github.com/arviz-devs/arviz | ||
``` | ||
::: | ||
|
||
:::: | ||
:::: | ||
|
||
* Create a ``feature`` branch to hold your development changes: | ||
4. Create a ``feature`` branch to hold your development changes: | ||
|
||
```bash | ||
$ git checkout -b my-feature | ||
``` | ||
|
||
Always use a ``feature`` branch. It's good practice to never routinely work on the ``main`` branch of any repository. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Seeing how we often get PRs from main, maybe we could put this two sentences inside an important or warning admonitions so it pops up? Now that we have this here and not on github we can use all sphinx powered cool formatting There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, on it |
||
|
||
* Project requirements are in ``requirements.txt``, and libraries used for development are in ``requirements-dev.txt``. To set up a development environment, you may (probably in a [virtual environment](https://docs.python-guide.org/dev/virtualenvs/)) run: | ||
5. Project requirements are in ``requirements.txt``, and libraries used for development are in ``requirements-dev.txt``. To set up a development environment, you may (probably in a [virtual environment](https://docs.python-guide.org/dev/virtualenvs/)) run: | ||
|
||
```bash | ||
$ pip install -r requirements.txt | ||
|
@@ -143,7 +143,7 @@ $ git remote add upstream https://github.com/arviz-devs/arviz | |
|
||
Alternatively, for developing the project in [Docker](https://docs.docker.com/), there is a script to setup the Docker environment for development. See {ref}`developing_in_docker`. | ||
|
||
* Develop the feature on your feature branch. Add your changes using git commands, ``git add`` and then ``git commit``, like: | ||
6. Develop the feature on your feature branch. Add your changes using git commands, ``git add`` and then ``git commit``, like: | ||
|
||
```bash | ||
$ git add modified_files | ||
|
@@ -163,7 +163,7 @@ $ git remote add upstream https://github.com/arviz-devs/arviz | |
$ git push -u origin my-feature | ||
``` | ||
|
||
* Go to the GitHub web page of your fork of the ArviZ repo. Click the 'Pull request' button to send your changes to the project's maintainers for review. This will send an email to the committers. | ||
7. Go to the GitHub web page of your fork of the ArviZ repo. Click the 'Pull request' button to send your changes to the project's maintainers for review. This will send an email to the committers. | ||
|
||
(pr_checklist)= | ||
# Pull request checklist | ||
|
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.
the double https/ssh double code alternatives look a bit bloated to me right now, can you try and see how they look with synced tabs from sphinx-design? ref #1751 (also double check that it doesn't break the about us page for example
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.
Done.