diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index a010ad273a..c791e44ae7 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -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": { @@ -19,7 +19,8 @@ "libz-dev", "pngquant" ] - } + }, + "ghcr.io/devcontainers-contrib/features/coverage-py:2": {} }, // Configure tool-specific properties. "customizations": { @@ -36,7 +37,7 @@ }, "editor.formatOnSave": true, "editor.codeActionsOnSave": { - "source.organizeImports": true + "source.organizeImports": "explicit" }, // Markdown "markdown.updateLinksOnFileMove.enabled": "prompt", @@ -45,13 +46,13 @@ "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, @@ -59,7 +60,7 @@ "editor.rulers": [ 88 ], - "editor.wordWrapColumn": 88, + "editor.wordWrapColumn": 88 }, // extensions "autoDocstring.guessTypes": true, @@ -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",