1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
{
"name": "doxysphinx",
"build": {
"dockerfile": "Dockerfile",
"context": "../",
"args": {
"VARIANT": "3.12",
"WORKSPACE_DIR": "${containerWorkspaceFolder}"
}
},
"customizations": {
"vscode": {
// Set *default* container specific settings.json values on container create.
"settings": {
"python.defaultInterpreterPath": "${containerWorkspaceFolder}/.venv/bin/python",
"python.linting.banditEnabled": true,
"python.linting.banditPath": "/usr/local/py-utils/bin/bandit",
"python.linting.mypyEnabled": true,
"python.linting.mypyPath": "/usr/local/py-utils/bin/mypy",
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"python.linting.flake8Path": "/usr/local/py-utils/bin/flake8",
"python.formatting.provider": "black",
"python.formatting.blackPath": "/usr/local/py-utils/bin/black",
"python.poetryPath": "/home/vscode/.local/bin/poetry",
"python.analysis.extraPaths": [
"${containerWorkspaceFolder}"
],
"python.analysis.exclude": [
".build",
".cache",
".github",
".idea",
".mypy_cache",
".pytest_cache",
"build",
"demo",
"dist",
"docs",
"external"
],
"terminal.integrated.profiles.linux": {
"zsh": {
"path": "/bin/zsh"
}
},
"terminal.integrated.defaultProfile.linux": "zsh",
"http.proxyStrictSSL": false
},
"extensions": [
"ms-python.python",
"njpwerner.autodocstring",
"KevinRose.vsc-python-indent",
"eamodio.gitlens",
"ExecutableBookProject.myst-highlight",
"DavidAnson.vscode-markdownlint",
"tamasfe.even-better-toml",
"ryanluker.vscode-coverage-gutters"
]
}
},
// As a post create command we install the poetry dependencies and also install the pre-commit hooks.
// It's necessary to do this here because in Dockerfile we do not have the config files (pyproject.toml +
// .pre-commit-config.yaml) available.
// "postCreateCommand": "pre-commit install --install-hooks && pre-commit autoupdate",
// "onCreateCommand": "poetry install --with sphinx && pre-commit install --install-hooks && pre-commit autoupdate",
"remoteUser": "vscode"
}
|