-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add devcontainer config for codespaces (#481)
* feat: Add devcontainer config for codespaces * Adding changelog entry: 481.miscellaneous.md * Update post_gen_project.py * Update post_gen_project.py * Update test_python_templates.py --------- Co-authored-by: pyansys-ci-bot <[email protected]>
- Loading branch information
1 parent
ab39772
commit 8786f9b
Showing
4 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
feat: Add devcontainer config for codespaces |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...ates/python/solution/{{cookiecutter.__project_name_slug}}/.devcontainer/devcontainer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"image": "mcr.microsoft.com/devcontainers/python:3.10", | ||
"features": { | ||
}, | ||
"onCreateCommand": "pip install packaging toml && python setup_environment.py -d all -f", | ||
"postCreateCommand": "chmod +x /workspaces/{{ cookiecutter.__project_name_slug }}/.venv/bin/activate && sed -i '$a source /workspaces/{{ cookiecutter.__project_name_slug }}/.venv/bin/activate' ~/.bashrc && sed -i '$a source /workspaces/{{ cookiecutter.__project_name_slug }}/.venv/bin/activate' ~/.zshrc", | ||
"postAttachCommand": "tox -e style", | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"davidanson.vscode-markdownlint", | ||
"donjayamanne.python-environment-manager", | ||
"donjayamanne.python-extension-pack", | ||
"github.vscode-github-actions", | ||
"github.vscode-pull-request-github", | ||
"kevinrose.vsc-python-indent", | ||
"mhutchie.git-graph", | ||
"ms-python.debugpy", | ||
"ms-python.python", | ||
"ms-python.vscode-pylance", | ||
"shd101wyy.markdown-preview-enhanced", | ||
"vscode-icons-team.vscode-icons" | ||
] | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters