Skip to content

Commit

Permalink
Merge branch 'main' into maintenance/update-solution-template
Browse files Browse the repository at this point in the history
  • Loading branch information
iazehaf authored Jun 3, 2024
2 parents da2244f + 8786f9b commit 08061bf
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/changelog.d/481.miscellaneous.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
feat: Add devcontainer config for codespaces
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@


DESIRED_STRUCTURE = [
".devcontainer/devcontainer.json",
".github/workflows/build-release.yml",
".github/workflows/release-please.yml",
".github/workflows/label.yml",
Expand Down
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"
]
}
}
}
1 change: 1 addition & 0 deletions tests/tests_templates/test_python_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@

# Structure for solution projects
SOLUTION_STRUCTURE = [
".devcontainer/devcontainer.json",
".github/workflows/build-release.yml",
".github/workflows/release-please.yml",
".github/workflows/label.yml",
Expand Down

0 comments on commit 08061bf

Please sign in to comment.