Skip to content

Commit

Permalink
remove json comments
Browse files Browse the repository at this point in the history
check-json and allow them with --with-comments
  • Loading branch information
Mearman committed May 22, 2022
1 parent ee8878f commit aa41215
Showing 1 changed file with 4 additions and 33 deletions.
37 changes: 4 additions & 33 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,30 +1,18 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.234.0/containers/python-3
{
"name": "OctoPrint - Python 3",
"build": {
"dockerfile": "Dockerfile",
"context": "..",
"args": {
// Update 'VARIANT' to pick a Python version: 3, 3.10, 3.9, 3.8, 3.7, 3.6
// Append -bullseye or -buster to pin to an OS version.
// Use -bullseye variants on local on arm64/Apple Silicon.
"VARIANT": "3.10-bullseye",
"VARIANT": "3.10-bullseye"
}
},
//
// Set *default* container specific settings.json values on container create.
"settings": {
"python.defaultInterpreterPath": "/usr/local/bin/python",
"python.formatting.provider": "black",
"python.formatting.blackArgs": [
"--config",
"black.toml"
],
"python.formatting.blackArgs": ["--config", "black.toml"],
"editor.formatOnSave": true,
"python.sortImports.args": [
"--profile=black"
],
"python.sortImports.args": ["--profile=black"],
"[python]": {
"editor.codeActionsOnSave": {
"source.organizeImports": true
Expand All @@ -43,32 +31,15 @@
"python.linting.pydocstylePath": "/usr/local/py-utils/bin/pydocstyle",
"python.linting.pylintPath": "/usr/local/py-utils/bin/pylint"
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-python.python",
"ms-python.vscode-pylance"
],
//
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// https://code.visualstudio.com/docs/remote/devcontainerjson-reference#_port-attributes
"extensions": ["ms-python.python", "ms-python.vscode-pylance"],
"portsAttributes": {
"8080": {
"label": "OctoPrint",
"onAutoForward": "openBrowser",
"protocol": "http"
}
},
//
// This command is the last of three that finalizes container setup when a dev container is created. It happens after updateContentCommand and once the dev container has been assigned to a user for the first time.
// In GitHub Codespaces, this command can always take advantage of user specific secrets and permissions.
// Note that the array syntax will execute the command without a shell. You can learn more about formatting string vs array properties.
"postCreateCommand": "pip install --upgrade pip && pip install -e '.[develop,plugins,docs]' && pre-commit install && git config blame.ignoreRevsFile .git-blame-ignore-revs",
//
// A command to run each time the container is successfully started.
// Note that the array syntax will execute the command without a shell. You can learn more about formatting string vs array properties.
"postStartCommand": "octoprint serve --host=127.0.0.1 --port=8080",
//
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "vscode"
}

0 comments on commit aa41215

Please sign in to comment.