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
list of issues in the `Issues` tab on GitHub (https://github.com/RocketPy-Team/RocketPy/issues).
13
12
If you are new hear, it is really recommended that you talk to maintainers
14
13
before starting to work on an issue.
15
14
That way you avoid working on something that is already being worked on or
@@ -20,12 +19,29 @@ a new issue to discuss it with the maintainers before submitting a PR.
20
19
21
20
Once the issue is assigned to you, you can start working on it.
22
21
22
+
.. note::
23
23
24
+
In order to open an issue at our repo, you must have a GitHub account. \
25
+
In case you do not want to open an account yet, you can contact the maintainers \
26
+
through our Discord server. But keep in mind that you you need an account to \
27
+
open a Pull Request (PR).
24
28
25
29
Creating a new branch
26
30
---------------------
27
31
28
-
At your local machine, ...
32
+
At your local machine,
33
+
34
+
.. code-block:: console
35
+
36
+
git checkout -b <branch_name>
37
+
38
+
39
+
.. tip::
40
+
41
+
VS Code has a built-in integration with git, this allows you to run git commands \
42
+
quite easily through the editor's interface. For example, you could search for \
43
+
"git checkout" in the command palette and run the command from there.
44
+
29
45
30
46
Opening the PR
31
47
--------------
@@ -55,16 +71,51 @@ Please correct any issues that may arise from the CI checks.
55
71
56
72
.. note::
57
73
58
-
All the commands we run in the CI pipeline can also be run locally. It is important \
59
-
that you run the checks locally before pushing your changes to the repository.
74
+
All the commands we run in the CI pipeline can also be run locally. It is \
75
+
important that you run the checks locally before pushing your changes to \
76
+
the repository.
60
77
61
78
The CHANGELOG file
62
79
------------------
63
80
64
-
We keep track of the changes in the `CHANGELOG.md` file. When you open a PR, you should add a new entry to the `Unreleased` section of the file. This entry should simply be the title of your PR.
81
+
We keep track of the changes in the ``CHANGELOG.md`` file.
82
+
When you open a PR, you should add a new entry to the "Unreleased" section of the file. This entry should simply be the title of your PR.
65
83
66
84
.. note::
67
85
68
86
In the future we would like to automate the CHANGELOG update, but for now \
69
87
it is a manual process, unfortunately.
70
88
89
+
90
+
The review process
91
+
------------------
92
+
93
+
After you open a PR, the maintainers will review your code.
94
+
This review process is a way to ensure that the code is in line with the project's goals and that it is well written and documented.
95
+
96
+
The maintainers may ask you to make changes to your code.
97
+
You should address these changes or explain why you think they are not necessary.
98
+
99
+
This is the best time to learn from the maintainers and improve your coding skills.
100
+
101
+
In case you do not address the comments in a timely manner, the maintainers may
102
+
either close the PR or make the changes themselves.
103
+
104
+
105
+
Merging the PR
106
+
--------------
107
+
108
+
There are 3 different ways of merging a PR:
109
+
110
+
1. **Create a merge commit**: this is the default option on GitHub.
111
+
2. **Squash and merge**: this option will squash all your commits into a single one. This is useful when you have many commits and you want to keep the history clean, therefore this is the recommended option.
112
+
3. **Rebase and merge**: this option will add your commits directly to the target branch, without creating a merge commit. This is useful to keep the history linear. However, this
113
+
114
+
.. note::
115
+
116
+
Overall, you will not have permission to merge your PR. The maintainers will \
117
+
take care of that for you. This is here just for you to understand the process.
118
+
119
+
All in all, there is no right or wrong way to merge a PR.
120
+
The maintainers will decide which option is the best for the project.
121
+
What you should care tough is about conflicting changes, let's talk about that next.
Copy file name to clipboardExpand all lines: docs/development/rocketpy_as_developer.rst
+28-7Lines changed: 28 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,11 @@
2
2
Introduction to RocketPy
3
3
========================
4
4
5
-
This tutorial part shows how to open rocketpy files and run a simple simulation.
5
+
This tutorial section shows how to open rocketpy files and run a simple simulation
6
+
in a local environment.
7
+
It is intended for developers who want to contribute to the project or for users
8
+
who want to run simulations with the library.
9
+
6
10
7
11
Opening rocketpy folder
8
12
=======================
@@ -51,11 +55,29 @@ To create the folder, type on the terminal:
51
55
52
56
And, to add it on .gitignore, type:
53
57
54
-
.. code-block:: console
58
+
.. tabs::
59
+
60
+
.. tab:: Windows
61
+
62
+
.. code-block:: console
63
+
64
+
echo <folder name>/ >> .gitignore
65
+
66
+
.. tab:: Linux
67
+
68
+
.. code-block:: console
69
+
70
+
echo "<folder name>/" >> .gitignore
71
+
72
+
.. tab:: MacOS
73
+
74
+
.. code-block:: console
75
+
76
+
echo "<folder name>/" >> .gitignore
55
77
56
-
echo <folder name>/ >> .gitignore
57
78
58
-
It is important to remember that all the files inside this folder will not be included in any commit so, if it is important to the solution, do not add them inside it.
79
+
It is important to remember that all the files inside this folder will not be
80
+
included in any commit so, if it is important to the solution, do not add them inside it.
59
81
60
82
Running a simulation with RocketPy
61
83
==================================
@@ -78,13 +100,13 @@ Alternatively you can use the following command to pip install the local library
78
100
sys.path.append('../') # if you are using a notebook
79
101
sys.path.append('../rocketpy') # if you are using a script
80
102
81
-
Import the classes that will be used, in case:
103
+
Import the classes that will be used, in this case:
82
104
83
105
.. code-block:: python
84
106
85
107
from rocketpy import Environment, SolidMotor, Rocket, Flight, Function
86
108
87
-
If it is the first time you are using rocketpy and you do not have all required libraries installed, you could use the command:
109
+
If this is the first time you are using rocketpy and you do not have all required libraries installed, you could use the command:
88
110
89
111
.. code-block:: python
90
112
@@ -281,4 +303,3 @@ For example, to access Flight class parameters, you can use:
281
303
help(Flight)
282
304
283
305
More documentation materials can be found at `read the docs <https://docs.rocketpy.org/en/latest/?badge=latest>`_.
284
-
It can also be found on RocketPy's GitHub page on the badge "docs".
0 commit comments