Skip to content

Commit 5249dde

Browse files
added devcontainer
1 parent 44de65e commit 5249dde

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.devcontainer/devcontainer.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/python
3+
{
4+
"name": "Python 3",
5+
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",
6+
"features": {
7+
"ghcr.io/devcontainers-contrib/features/poetry:2": {}
8+
},
9+
"postCreateCommand": "make install"
10+
}

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ This repository provides a template for Python 3.12 projects based on [Poetry](h
88
* [pytest](https://docs.pytest.org/en/8.2.x) is used for writing tests
99
* [ruff](https://docs.astral.sh/ruff) is used for linting and formatting
1010

11-
The file also provides a [GitHub Actions](https://docs.github.com/en/actions) workflow that automatically builds, lints, type checks, and tests the project on every commit, pull request, and direct invocation of the workflow.
11+
The repository also provides a [GitHub Actions](https://docs.github.com/en/actions) workflow that automatically builds, lints, type checks, and tests the project on every commit, pull request, and direct invocation of the workflow.
12+
13+
Finally, this repository provides a [DevContainer](https://containers.dev) to allow you to get started with development without installing anything to your machine (other than Docker and VSCode).
14+
To open this project up inside a DevContainer, bring up the command palette in VSCode (CTRL-Shift-P or Command-Shift-P) and select "rebuild and reopen project in DevContainer".
1215

1316
## Usage
1417

0 commit comments

Comments
 (0)