Skip to content

Commit

Permalink
Update CONTRIBUTING.md to include commands for Windows (#17142)
Browse files Browse the repository at this point in the history
Add command about how to activate virtual environment on Windows.
  • Loading branch information
GiorgosPapoutsakis authored Apr 22, 2024
1 parent 1072c78 commit f7687d3
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,23 @@ cd mypy
#### (3) Create then activate a virtual environment

```bash
# On Windows, the commands may be slightly different. For more details, see
# https://docs.python.org/3/library/venv.html#creating-virtual-environments
python3 -m venv venv
source venv/bin/activate
```

```bash
# For Windows use
python -m venv venv
. venv/Scripts/activate

# For more details, see https://docs.python.org/3/library/venv.html#creating-virtual-environments
```

#### (4) Install the test requirements and the project

```bash
python3 -m pip install -r test-requirements.txt
python3 -m pip install -e .
python -m pip install -r test-requirements.txt
python -m pip install -e .
hash -r # This resets shell PATH cache, not necessary on Windows
```

Expand Down

0 comments on commit f7687d3

Please sign in to comment.