- CPython >= 3.11.0
- PDM >= 2.20
- The Rust Toolchain
# Create the virtual environment
pyenv virtualenv 3.11 easynetwork-3.11
# Set the local python (3.12 and upward are still needed for tox)
pyenv local "easynetwork-3.11" 3.12 3.13
# Tell pdm to use your virtualenv
pdm use -f $VIRTUAL_ENV
# -> Using Python interpreter: /path/to/.pyenv/versions/3.11.x/envs/easynetwork-3.11/bin/python3 (3.11)
- For the
pyenv
users, set the local python :
pyenv local 3.11 3.12 3.13
- Create the virtual environment :
# Creates the virtual environment ( in .venv directory )
pdm venv create 3.11
# Tell pdm to use this virtualenv
pdm use --venv in-project
- Activate the virtual environment in the current shell using either :
- the manual way
- the pdm venv CLI tool
- Install the project with its dependencies and development tools :
pdm install -G:all
- If it is a clone of the
git
project, run :
pre-commit install
- Check the installation :
# Run pre-commit hooks
pre-commit run --all-files
# Run mypy against all the project
tox run -q -f mypy
-
The recommended extensions are in .vscode/extensions.json
-
Copy .vscode/settings.example.json to
.vscode/settings.json
-
(Optional) To enable VS code's integrated testing tool, add this in your
settings.json
:
{
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true,
"python.testing.pytestArgs": [
"-n",
"auto"
]
}
⚠️ NEVER run all the test suite with VS code integrated testing tool ! There are 8000+ tests.