Skip to content

Commit

Permalink
update(tooling): use Dockerfile to build codespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Oct 19, 2024
1 parent c58b7da commit 3d6e061
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
// README at: https://github.com/devcontainers/templates/tree/main/src/python
{
"name": "Édition en ligne",
// "build": {
// "dockerfile": "Dockerfile"
// },
"build": {
"dockerfile": "Dockerfile"
},
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:0-3.11",
// "image": "mcr.microsoft.com/devcontainers/python:0-3.11",
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
"ghcr.io/devcontainers-contrib/features/apt-packages:1": {
Expand All @@ -19,7 +19,8 @@
"libz-dev",
"pngquant"
]
}
},
"ghcr.io/devcontainers-contrib/features/coverage-py:2": {}
},
// Configure tool-specific properties.
"customizations": {
Expand All @@ -36,7 +37,7 @@
},
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.organizeImports": true
"source.organizeImports": "explicit"
},
// Markdown
"markdown.updateLinksOnFileMove.enabled": "prompt",
Expand All @@ -45,21 +46,21 @@
"markdown.validate.fileLinks.markdownFragmentLinks": "warning",
"markdown.validate.fragmentLinks.enabled": "warning",
"[markdown]": {
"files.trimTrailingWhitespace": false,
"files.trimTrailingWhitespace": false
},
// Python
"python.defaultInterpreterPath": ".venv/bin/python",
"[python]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true
"source.organizeImports": "explicit"
},
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true,
"editor.guides.bracketPairs": "active",
"editor.rulers": [
88
],
"editor.wordWrapColumn": 88,
"editor.wordWrapColumn": 88
},
// extensions
"autoDocstring.guessTypes": true,
Expand All @@ -69,7 +70,7 @@
"yaml.schemas": {
"https://squidfunk.github.io/mkdocs-material/schema.json": "mkdocs*.yml",
"https://json.schemastore.org/github-workflow.json": ".github/workflows/*.yml",
"https://json.schemastore.org/markdownlint.json": ".markdownlint*",
"https://json.schemastore.org/markdownlint.json": ".markdownlint*"
},
"yaml.customTags": [
"!ENV scalar",
Expand Down

0 comments on commit 3d6e061

Please sign in to comment.