Skip to content

Commit d311405

Browse files
Add GitHub Codespaces configuration (#13717)
GitHub Codespaces are an online Linux environment with a VSCode web UI. It is useful for developers who don't have a Linux device but want to test and debug their code on Linux.
1 parent 7abcae8 commit d311405

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

.devcontainer/devcontainer.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "pip",
3+
"image": "mcr.microsoft.com/devcontainers/python:1-3",
4+
"features": {
5+
"ghcr.io/rocker-org/devcontainer-features/apt-packages:1": {
6+
"packages": "mercurial,subversion,bzr"
7+
}
8+
},
9+
"postCreateCommand": "python -m venv .venv\nsource .venv/bin/activate\npip install nox\npip install -e .",
10+
"customizations": {
11+
"vscode": {
12+
"extensions": [
13+
"hbenl.vscode-test-explorer",
14+
"ms-python.python"
15+
]
16+
}
17+
}
18+
}

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ include = [
113113
"docs/**/*.rst",
114114
]
115115
exclude = [
116+
".devcontainer/devcontainer.json",
116117
"src/pip/_vendor/**/*.pyi",
117118
]
118119

0 commit comments

Comments
 (0)