Skip to content

Commit

Permalink
add devcontainer (#612)
Browse files Browse the repository at this point in the history
Co-authored-by: Mohamed Koubaa <[email protected]>
Co-authored-by: Revathy Venugopal <[email protected]>
  • Loading branch information
3 people authored and jorgepiloto committed Nov 13, 2024
1 parent 123ac5e commit 877837d
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "Python 3",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bullseye",

// Features to add to the dev container. More info: https://containers.dev/features.
// "features": {},

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "echo 'Installing dependencies...' && pip3 install -e '.[test,codegen]' && pip3 install pre-commit && pre-commit install --install-hooks",

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"

// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VSCode.
"vscode": {
"openFiles": [
".devcontainer/welcome.rst"
],
"extensions": [
"ms-python.python"
],
"settings": {
"terminal.integrated.defaultProfile.linux": "bash",
"python.testing.pytestArgs": [
"tests"
],
"python.testing.unittestEnabled": false,
"python.testing.pytestEnabled": true
}
}
}
}
5 changes: 5 additions & 0 deletions .devcontainer/welcome.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Welcome to VSCode DevContainer!
===============================

This Devcontainer has been specifically set for developing and/or documenting PyDyna.

2 changes: 1 addition & 1 deletion tests/test_perf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _gen_nodes(count):


def write1(s: io.StringIO, nodes: kwd.Node):
"""Write the keyword with the implementation that is built into dynalib"""
"""Write the keyword with the implementation that is built into PyDyna."""
nodes.write(s)
return s

Expand Down

0 comments on commit 877837d

Please sign in to comment.