Skip to content

Commit

Permalink
Merge pull request #337 from kenibrewer/fix/devcontainer-poetry
Browse files Browse the repository at this point in the history
fix(devcontainer): install poetry via devcontainer feature
  • Loading branch information
kenibrewer authored Oct 27, 2023
2 parents 893dd53 + d5e552b commit 500850b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
{
"name": "Pycytominer Dev",
"image": "mcr.microsoft.com/devcontainers/python:0-3.11",
"features": {
"ghcr.io/devcontainers-contrib/features/poetry:2": {}
},
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "bash .devcontainer/postCreateCommand.sh",
// Configure tool-specific properties.
Expand Down
1 change: 0 additions & 1 deletion .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#! /usr/bin/env bash
python -m pip install poetry
poetry config virtualenvs.in-project true --local
poetry install --with cell_locations,collate,dev
poetry run pre-commit install --install-hooks

0 comments on commit 500850b

Please sign in to comment.