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
*(Note: You may need to open a new terminal or run `source ~/.profile` to apply PATH changes after this step).*
38
+
39
+
## 3. Install Poetry and Python 3.12
40
+
41
+
The package requires `>=3.10,<3.13`. We use Poetry's built-in installer to handle the Python version universally across all distributions.
42
+
18
43
```bash
19
-
python3.10 -m pip install --user pipx
20
-
python3.10 -m pipx ensurepath
21
44
pipx install poetry
45
+
poetry python install 3.12
22
46
```
23
47
24
48
## 4. Create and activate development environment
49
+
25
50
```bash
26
-
poetry install
51
+
poetry env use 3.12
52
+
poetry install --extras dev
27
53
poetry shell
28
54
```
29
55
30
56
## 5. Install pre-commit hooks
57
+
31
58
```bash
32
59
pipx install pre-commit
33
60
pre-commit install
34
61
```
35
62
36
63
Run pre-commit checks manually:
64
+
37
65
```bash
38
66
pre-commit run --all-files
39
67
```
40
68
41
69
## 6. Run tests
42
70
43
71
Run fast unit tests using simulated data:
72
+
44
73
```bash
45
74
poetry run pytest -v tests/anoph
46
75
```
@@ -50,16 +79,19 @@ poetry run pytest -v tests/anoph
50
79
To run legacy tests which read data from GCS, you'll need to [request access to MalariaGEN data on GCS](https://malariagen.github.io/vector-data/vobs/vobs-data-access.html).
51
80
52
81
Once access has been granted, [install the Google Cloud CLI](https://cloud.google.com/sdk/docs/install):
0 commit comments