Skip to content

Commit fe03ead

Browse files
authored
docs: add note on Python version for pre-commit (#9028)
* docs: add note on Python version for pre-commit * docs: update dev setup instructions to use Python 3.10
1 parent e6ad87c commit fe03ead

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

CONTRIBUTING.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,12 @@ dev environment.
109109
way to set up the development environment. First, install uv by following the
110110
[installation guide](https://docs.astral.sh/uv/getting-started/installation/).
111111

112-
After uv is installed, in your working directory (`dspy/`), run:
112+
After uv is installed, in your working directory (`dspy/`), create a virtual environment using Python 3.10:
113+
114+
```shell
115+
uv venv --python 3.10
116+
```
117+
This creates a `.venv` directory. Now, sync the environment with the development dependencies:
113118

114119
```shell
115120
uv sync --extra dev
@@ -136,7 +141,7 @@ make sure you have conda installed. If not, please follow the instructions
136141
To set up the environment, run:
137142

138143
```shell
139-
conda create -n dspy-dev python=3.11
144+
conda create -n dspy-dev python=3.10
140145
conda activate dspy-dev
141146
pip install -e ".[dev]"
142147
```

0 commit comments

Comments
 (0)