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
@@ -32,12 +71,12 @@ Finally add the ``skypyproject`` repository as a *remote*. This will allow you t
32
71
Create a branch for your new feature
33
72
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34
73
35
-
Create a *branch* off the ``skypyproject`` master branch. Working on unique branches for each new feature simplifies the development, review and merge processes by maintining logical separation. To create a feature branch:
74
+
Create a *branch* off the ``skypyproject`` main branch. Working on unique branches for each new feature simplifies the development, review and merge processes by maintining logical separation. To create a feature branch:
@@ -73,7 +112,7 @@ When you feel that work on your new feature is complete, you should create a *Pu
73
112
1. Go to `SkyPy Pull Requests <https://github.com/skypyproject/skypy/pulls>`_
74
113
2. Click the green **New pull request** button
75
114
3. Click **compare across forks**
76
-
4. Confirm that the base fork is ``skypyproject/skypy`` and the base branch is ``master``
115
+
4. Confirm that the base fork is ``skypyproject/skypy`` and the base branch is ``main``
77
116
5. Confirm the head fork is ``<your-account>/skypy`` and the compare branch is ``<your-branch-name>``
78
117
6. Give your pull request a title and fill out the the template for the description
79
118
7. Click the green **Create pull request** button
@@ -91,22 +130,22 @@ A series of automated checks will be run on your pull request, some of which wil
91
130
Updating your branch
92
131
^^^^^^^^^^^^^^^^^^^^
93
132
94
-
As you work on your feature, new commits might be made to the ``skypyproject`` master branch. You will need to update your branch with these new commits before your pull request can be accepted. You can achieve this in a few different ways:
133
+
As you work on your feature, new commits might be made to the ``skypyproject`` main branch. You will need to update your branch with these new commits before your pull request can be accepted. You can achieve this in a few different ways:
95
134
96
135
- If your pull request has no conflicts, click **Update branch**
97
136
- If your pull request has conflicts, click **Resolve conflicts**, manually resolve the conflicts and click **Mark as resolved**
98
-
- *merge* the ``skypyproject`` master branch from the command line:
137
+
- *merge* the ``skypyproject`` main branch from the command line:
99
138
100
139
::
101
140
102
141
git fetch skypyproject
103
-
git merge skypyproject/master
142
+
git merge skypyproject/main
104
143
105
-
- *rebase* your feature branch onto the ``skypyproject`` master branch from the command line:
144
+
- *rebase* your feature branch onto the ``skypyproject`` main branch from the command line:
106
145
::
107
146
108
147
git fetch skypyproject
109
-
git rebase skypyproject/master
148
+
git rebase skypyproject/main
110
149
111
150
112
151
**Warning**: It is bad practice to *rebase* commits that have already been pushed to a remote such as your fork. Rebasing creates new copies of your commits that can cause the local and remote branches to diverge. ``git push --force`` will **overwrite** the remote branch with your newly rebased local branch. This is strongly discouraged, particularly when working on a shared branch where you could erase a collaborators commits.
@@ -129,7 +168,7 @@ Before your pull request can be merged into the codebase, it will be reviewed by
129
168
General Guidelines
130
169
^^^^^^^^^^^^^^^^^^
131
170
132
-
- SkyPy is compatible with Python>=3.6 (see `setup.cfg <https://github.com/skypyproject/skypy/blob/master/setup.cfg>`_). SkyPy *does not* support backwards compatibility with Python 2.x; `six`, `__future__` and `2to3` should not be used.
171
+
- SkyPy is compatible with Python>=3.7 (see `setup.cfg <https://github.com/skypyproject/skypy/blob/main/setup.cfg>`_). SkyPy *does not* support backwards compatibility with Python 2.x; `six`, `__future__` and `2to3` should not be used.
133
172
- All contributions should follow the `PEP8 Style Guide for Python Code <https://www.python.org/dev/peps/pep-0008/>`_. We recommend using `flake8 <https://flake8.pycqa.org/>`__ to check your code for PEP8 compliance.
134
173
- Importing SkyPy should only depend on having `NumPy <https://www.numpy.org>`_, `SciPy <https://www.scipy.org/>`_ and `Astropy <https://www.astropy.org/>`__ installed.
135
174
- Code is grouped into submodules based on broad science areas e.g. `galaxies <https://skypy.readthedocs.io/en/stable/galaxies.html>`_. There is also a `utils <https://skypy.readthedocs.io/en/stable/utils/index.html>`_ submodule for general utility functions.
@@ -150,7 +189,6 @@ All public classes, methods and functions require docstrings. You can build docu
150
189
- Description
151
190
- Parameters
152
191
- Notes
153
-
- Examples
154
192
- References
155
193
156
194
For more information see the Astropy guide to `Writing Documentation <https://docs.astropy.org/en/stable/development/docguide.html>`_.
0 commit comments