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: CONTRIBUTING.md
+55-22Lines changed: 55 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,36 +25,67 @@ These are especially suitable if you're new to the project, and we recommend sta
25
25
26
26
## Contributing code
27
27
28
-
29
28
### Creating a development environment
30
-
It is recommended to use [conda](conda:)
31
-
or [mamba](mamba:) to create a
32
-
development environment for `movement`. In the following we assume you have
33
-
`conda` installed, but the same commands will also work with `mamba`/`micromamba`.
34
29
35
-
First, create and activate a `conda` environment with some prerequisites:
30
+
In order to make changes to `movement`, you will need to fork the [repository](movement-github:).
31
+
If you are not familiar with `git`, we recommend reading up on [this guide](https://docs.github.com/en/get-started/using-git/about-git#basic-git-commands).
Then, install the package in editable mode with development dependencies:
59
+
60
+
```sh
61
+
pip install -e ".[dev]"
62
+
```
63
+
:::
64
+
65
+
:::{tab-item} uv
66
+
67
+
First, create and activate a [virtual environment](uv:pip/environments/):
68
+
69
+
```sh
70
+
uv venv --python=3.13
71
+
source .venv/bin/activate # On macOS and Linux
72
+
.venv\Scripts\activate # On Windows PowerShell
73
+
```
74
+
75
+
Then, install the package in editable mode with development dependencies:
76
+
77
+
```sh
78
+
uv pip install -e ".[dev]"
79
+
```
80
+
:::
81
+
82
+
::::
83
+
84
+
4. Finally, initialise the [pre-commit hooks](#formatting-and-pre-commit-hooks):
85
+
86
+
```sh
87
+
pre-commit install
88
+
```
58
89
59
90
### Pull requests
60
91
In all cases, please submit code to the main repository via a pull request (PR).
@@ -218,6 +249,8 @@ To edit the documentation, first clone the repository, and install `movement` in
218
249
Then, install a few additional dependencies in your development environment to be able to build the documentation locally. To do this, run the following command from the root of the repository:
219
250
```sh
220
251
pip install -r ./docs/requirements.txt
252
+
# or, for uv users:
253
+
uv pip install -r ./docs/requirements.txt
221
254
```
222
255
223
256
Now create a new branch, edit the documentation source files (`.md` or `.rst`in the `docs` folder),
0 commit comments