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: LINUX_SETUP.md
+53-12Lines changed: 53 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,51 @@
1
1
# Developer setup (Linux)
2
2
3
-
To get setup for development, see [this video if you prefer VS Code](https://youtu.be/zddl3n1DCFM), or [this older video if you prefer PyCharm](https://youtu.be/QniQi-Hoo9A), and the instructions below.
*(Note: You may need to open a new terminal or run `source ~/.profile` to apply PATH changes after this step).*
74
+
Close and reopen your terminal to apply PATH changes.
75
+
If you prefer to reload the shell in-place, run:
76
+
77
+
```bash
78
+
exec bash
79
+
```
38
80
39
-
## 3. Install Poetry and Python 3.12
81
+
## 4. Install Poetry and Python 3.12
40
82
41
83
The package requires `>=3.10,<3.13`. We use Poetry's built-in installer to handle the Python version universally across all distributions.
42
84
@@ -45,15 +87,14 @@ pipx install poetry
45
87
poetry python install 3.12
46
88
```
47
89
48
-
## 4. Create and activate development environment
90
+
## 5. Create development environment
49
91
50
92
```bash
51
93
poetry env use 3.12
52
94
poetry install --extras dev
53
-
poetry shell
54
95
```
55
96
56
-
## 5. Install pre-commit hooks
97
+
## 6. Install pre-commit hooks
57
98
58
99
```bash
59
100
pipx install pre-commit
@@ -66,15 +107,15 @@ Run pre-commit checks manually:
66
107
pre-commit run --all-files
67
108
```
68
109
69
-
## 6. Run tests
110
+
## 7. Run tests
70
111
71
112
Run fast unit tests using simulated data:
72
113
73
114
```bash
74
115
poetry run pytest -v tests/anoph
75
116
```
76
117
77
-
## 7. Google Cloud authentication (for legacy tests)
118
+
## 8. Google Cloud authentication (for legacy tests)
78
119
79
120
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).
0 commit comments