c7171a54cb
build and deploy Speckle functions / publish-automate-function-version (push) Has been cancelled
49 lines
1.5 KiB
JSON
49 lines
1.5 KiB
JSON
{
|
|
"name": "Model Checker - An Automate Function",
|
|
"dockerFile": "Dockerfile",
|
|
"context": "..",
|
|
"workspaceFolder": "/home/speckle",
|
|
"runArgs": [
|
|
"--network",
|
|
"host"
|
|
],
|
|
"mounts": [
|
|
"source=${localWorkspaceFolder},target=/home/speckle,type=bind,consistency=cached"
|
|
],
|
|
"customizations": {
|
|
"vscode": {
|
|
"extensions": [
|
|
"ms-python.python",
|
|
"ms-python.vscode-pylance",
|
|
"ms-python.black-formatter",
|
|
"ms-python.isort",
|
|
"ms-python.flake8",
|
|
"littlefoxteam.vscode-python-test-adapter",
|
|
"ms-azuretools.vscode-docker",
|
|
"charliermarsh.ruff"
|
|
],
|
|
"settings": {
|
|
"python.defaultInterpreterPath": "/usr/local/bin/python",
|
|
"python.linting.enabled": true,
|
|
"python.linting.flake8Enabled": true,
|
|
"python.formatting.provider": "black",
|
|
"python.testing.pytestEnabled": true,
|
|
"python.testing.unittestEnabled": false,
|
|
"python.testing.nosetestsEnabled": false,
|
|
"python.testing.pytestArgs": [
|
|
"tests"
|
|
],
|
|
"python.testing.autoTestDiscoverOnSaveEnabled": true,
|
|
"python.testing.cwd": "${workspaceFolder}",
|
|
"[python]": {
|
|
"editor.formatOnSave": true,
|
|
"editor.codeActionsOnSave": {
|
|
"source.organizeImports": "explicit"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"postCreateCommand": "sh -c \"mkdir -p ~/.pip && echo '[global]\nprefer-ipv4 = true' > ~/.pip/pip.conf\"",
|
|
"postStartCommand": "echo 'Container started successfully!'"
|
|
} |