1
- .. todo :: THIS IS SUPPOSED TO BE AN EXAMPLE. MODIFY IT ACCORDING TO YOUR NEEDS!
2
-
3
- The document assumes you are using a source repository service that promotes a
4
- contribution model similar to `GitHub's fork and pull request workflow `_.
5
- While this is true for the majority of services (like GitHub, GitLab,
6
- BitBucket), it might not be the case for private repositories (e.g., when
7
- using Gerrit).
8
-
9
- Also notice that the code examples might refer to GitHub URLs or the text
10
- might use GitHub specific terminology (e.g., *Pull Request * instead of *Merge
11
- Request *).
12
-
13
- Please make sure to check the document having these assumptions in mind
14
- and update things accordingly.
15
-
16
- .. todo :: Provide the correct links/replacements at the bottom of the document.
17
-
18
- .. todo :: You might want to have a look on `PyScaffold's contributor's guide`_,
19
-
20
- especially if your project is open source. The text should be very similar to
21
- this template, but there are a few extra contents that you might decide to
22
- also include, like mentioning labels of your issue tracker or automated
23
- releases.
24
-
25
-
26
1
============
27
2
Contributing
28
3
============
@@ -72,25 +47,20 @@ by adding missing information and correcting mistakes.
72
47
This means that the docs are kept in the same repository as the project code, and
73
48
that any documentation update is done in the same way was a code contribution.
74
49
75
- .. todo :: Don't forget to mention which markup language you are using.
76
-
77
- e.g., reStructuredText _ or CommonMark _ with MyST _ extensions.
78
50
79
- .. todo :: If your project is hosted on GitHub, you can also mention the following tip:
80
-
81
- .. tip ::
82
- Please notice that the `GitHub web interface `_ provides a quick way of
83
- propose changes in ``osc-physrisk-financial ``'s files. While this mechanism can
84
- be tricky for normal code contributions, it works perfectly fine for
85
- contributing to the docs, and can be quite handy.
86
-
87
- If you are interested in trying this method out, please navigate to
88
- the ``docs `` folder in the source repository _, find which file you
89
- would like to propose changes and click in the little pencil icon at the
90
- top, to open `GitHub's code editor `_. Once you finish editing the file,
91
- please write a message in the form at the bottom of the page describing
92
- which changes have you made and what are the motivations behind them and
93
- submit your proposal.
51
+ .. tip ::
52
+ Please notice that the `GitHub web interface `_ provides a quick way of
53
+ propose changes in ``osc-physrisk-financial ``'s files. While this mechanism can
54
+ be tricky for normal code contributions, it works perfectly fine for
55
+ contributing to the docs, and can be quite handy.
56
+
57
+ If you are interested in trying this method out, please navigate to
58
+ the ``docs `` folder in the source repository _, find which file you
59
+ would like to propose changes and click in the little pencil icon at the
60
+ top, to open `GitHub's code editor `_. Once you finish editing the file,
61
+ please write a message in the form at the bottom of the page describing
62
+ which changes have you made and what are the motivations behind them and
63
+ submit your proposal.
94
64
95
65
When working on documentation changes in your local machine, you can
96
66
compile them using |tox |_::
@@ -151,8 +121,6 @@ Clone the repository
151
121
152
122
to be able to import the package under development in the Python REPL.
153
123
154
- .. todo:: if you are not using pre-commit, please remove the following item:
155
-
156
124
#. Install |pre-commit |_::
157
125
158
126
pip install pre-commit
@@ -182,11 +150,9 @@ Implement your changes
182
150
183
151
to record your changes in git_.
184
152
185
- .. todo:: if you are not using pre-commit, please remove the following item:
186
-
187
153
Please make sure to see the validation messages from |pre-commit|_ and fix
188
154
any eventual issues.
189
- This should automatically use flake8_/black_ to check/fix the code style
155
+ This should automatically use ruff_ to check/fix the code style
190
156
in a way that is compatible with the project.
191
157
192
158
.. important:: Don't forget to add unit tests and documentation in case your
@@ -218,11 +184,9 @@ Submit your contribution
218
184
#. Go to the web page of your fork and click |contribute button |
219
185
to send your changes for review.
220
186
221
- .. todo :: if you are using GitHub, you can uncomment the following paragraph
222
-
223
- Find more detailed information in `creating a PR `_. You might also want to open
224
- the PR as a draft first and mark it as ready for review after the feedbacks
225
- from the continuous integration (CI) system or any required fixes.
187
+ Find more detailed information in `creating a PR `_. You might also want to open
188
+ the PR as a draft first and mark it as ready for review after the feedbacks
189
+ from the continuous integration (CI) system or any required fixes.
226
190
227
191
228
192
Troubleshooting
@@ -278,11 +242,6 @@ Maintainer tasks
278
242
Releases
279
243
--------
280
244
281
- .. todo :: This section assumes you are using PyPI to publicly release your package.
282
-
283
- If instead you are using a different/private package index, please update
284
- the instructions accordingly.
285
-
286
245
If you are part of the group of maintainers and have correct user permissions
287
246
on PyPI _, the following steps can be used to release a new version for
288
247
``osc-physrisk-financial ``:
@@ -308,15 +267,12 @@ on PyPI_, the following steps can be used to release a new version for
308
267
of environments, including private companies and proprietary code bases.
309
268
310
269
311
- .. <-- start -->
312
- .. todo :: Please review and change the following definitions:
313
270
314
271
.. |the repository service | replace :: GitHub
315
272
.. |contribute button | replace :: "Create pull request"
316
273
317
- .. _repository : https://github.com/<USERNAME>/osc-physrisk-financial
318
- .. _issue tracker : https://github.com/<USERNAME>/osc-physrisk-financial/issues
319
- .. <-- end -->
274
+ .. _repository : https://github.com/os-climate/osc-physrisk-financial
275
+ .. _issue tracker : https://github.com/os-climate/osc-physrisk-financial/issues
320
276
321
277
322
278
.. |virtualenv | replace :: ``virtualenv ``
@@ -331,7 +287,7 @@ on PyPI_, the following steps can be used to release a new version for
331
287
.. _descriptive commit message : https://chris.beams.io/posts/git-commit
332
288
.. _docstrings : https://www.sphinx-doc.org/en/master/usage/extensions/napoleon.html
333
289
.. _first-contributions tutorial : https://github.com/firstcontributions/first-contributions
334
- .. _ flake8 : https://flake8.pycqa.org/en/stable /
290
+ .. _ ruff : https://docs.astral.sh/ruff /
335
291
.. _git : https://git-scm.com
336
292
.. _GitHub's fork and pull request workflow : https://guides.github.com/activities/forking/
337
293
.. _guide created by FreeCodeCamp : https://github.com/FreeCodeCamp/how-to-contribute-to-open-source
0 commit comments