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: doc/source/userguide/contributing.rst
+12-1Lines changed: 12 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,17 @@
2
2
Contributing to Pyrad
3
3
========================
4
4
5
-
Pyrad is an open project and all contributions are welcome.
5
+
Pyrad is an open project and all contributions are welcome.
6
6
7
7
Please check our `User manual <https://github.com/MeteoSwiss/pyrad/blob/master/additional_doc/pyrad_user_manual.pdf>`_ to get started!
8
+
9
+
Code quality
10
+
"""""""""""""""""""""""""
11
+
12
+
The code of pyrad is quality-checked with `ruff <https://docs.astral.sh/ruff/>`_ (PEP8) and `black <https://github.com/psf/black>`_ (code formatting).
13
+
Any code that does not follow these guidelines will make the CI of the commit or PR fail. The best way to avoid this is to install pre-commit hooks that will run ruff and black for every local commit you make.
14
+
15
+
To install the pre-commit hooks simply go to the root directory or your pyrad repository (the one with the .git directory) and run::
Copy file name to clipboardExpand all lines: doc/source/userguide/installation.rst
+13-12Lines changed: 13 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,9 @@ RSL_PATH
118
118
Path to the RSL library which is used by some routines of Py-ART. Please be aware that this library is deprecated, and the Py-ART is currently
119
119
working on an alternative.
120
120
121
+
PYRAD_DEBUG
122
+
If you set the value of this environment variable to 1, the pdb debugger will be automatically started if any exception or warning is triggered during the execution of pyrad
123
+
121
124
A good way to avoid redefining these environment variables everytime you want to use Pyrad/Py-ART, is to define them in your .bashrc file.
122
125
123
126
@@ -155,25 +158,25 @@ From the source
155
158
Getting the code
156
159
"""""""""""""""""""""""""
157
160
158
-
To get a copy of the Pyrad superproject simply place yourself in the desired working directory (It is strongly recommended to use your $HOME in order to be able to use
161
+
To get a copy of the Pyrad superproject simply place yourself in the desired working directory (It is strongly recommended to use your $HOME in order to be able to use
0 commit comments