mirror of
https://github.com/lucaspalomodevelop/netbox-acls.git
synced 2026-03-12 23:27:23 +00:00
88 lines
3.4 KiB
JSON
88 lines
3.4 KiB
JSON
// 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.238.0/containers/python-3-postgres
|
|
// Update the VARIANT arg in docker-compose.yml to pick a Python version
|
|
{
|
|
"name": "NetBox Plugin Develoment",
|
|
"dockerComposeFile": [
|
|
"docker-compose.yml",
|
|
"docker-compose.override.yml"
|
|
],
|
|
"service": "netbox",
|
|
//"workspaceMount": "source=${localWorkspaceFolder},target=/opt/netbox/netbox/netbox-access-lists,type=bind,consistency=cached",
|
|
"workspaceFolder": "/opt/netbox/netbox/netbox-access-lists",
|
|
|
|
"overrideCommand":false,
|
|
|
|
// Configure tool-specific properties.
|
|
"customizations": {
|
|
// Configure properties specific to VS Code.
|
|
"vscode": {
|
|
// Set *default* container specific settings.json values on container create.
|
|
"settings": {
|
|
//"[python]": {
|
|
// "editor.codeActionsOnSave": {
|
|
// "source.organizeImports": true
|
|
// }
|
|
//},
|
|
//"python.sortImports.args": [
|
|
// "--profile=black"
|
|
//],
|
|
//"python.sortImports.path": "/opt/netbox/venv/bin/isort",
|
|
"python.analysis.typeCheckingMode": "strict",
|
|
"python.analysis.extraPaths": [
|
|
"/opt/netbox/",
|
|
"/opt/netbox/netbox"
|
|
],
|
|
"python.autoComplete.extraPaths": [
|
|
"/opt/netbox/",
|
|
"/opt/netbox/netbox"
|
|
],
|
|
"python.defaultInterpreterPath": "/opt/netbox/venv/bin/python",
|
|
"python.formatting.autopep8Path": "/opt/netbox/venv/lib/python3.9/site-packages/autopep8",
|
|
"python.formatting.blackPath": "/opt/netbox/venv/lib/python3.9/site-packages/black",
|
|
"python.formatting.provider": "black",
|
|
"python.formatting.yapfPath": "/opt/netbox/venv/lib/python3.9/site-packages/yapf",
|
|
"python.linting.banditPath": "/opt/netbox/venv/lib/python3.9/site-packages/bandit",
|
|
"python.linting.enabled": true,
|
|
"python.linting.flake8Path": "/opt/netbox/venv/lib/python3.9/site-packages/flake8",
|
|
"python.linting.mypyPath": "/opt/netbox/venv/lib/python3.9/site-packages/mypy",
|
|
"python.linting.pycodestylePath": "/opt/netbox/venv/lib/python3.9/site-packages/pycodestyle",
|
|
"python.linting.pydocstylePath": "/opt/netbox/venv/lib/python3.9/site-packages/pydocstyle",
|
|
"python.linting.pylintEnabled": true,
|
|
"python.linting.pylintPath": "/opt/netbox/venv/lib/python3.9/site-packages/pylint",
|
|
"python.pythonPath": "/opt/netbox/venv/bin/python",
|
|
"python.terminal.activateEnvironment": true,
|
|
"python.venvPath": "/opt/netbox/"
|
|
},
|
|
|
|
// Add the IDs of extensions you want installed when the container is created.
|
|
"extensions": [
|
|
"ms-python.python",
|
|
"ms-python.vscode-pylance",
|
|
"DavidAnson.vscode-markdownlint",
|
|
"searKing.preview-vscode",
|
|
"esbenp.prettier-vscode",
|
|
"aaron-bond.better-comments",
|
|
"GitHub.codespaces",
|
|
"codezombiech.gitignore",
|
|
"Tyriar.sort-lines",
|
|
"GitHub.vscode-pull-request-github",
|
|
"sourcery.sourcery"
|
|
]
|
|
}
|
|
},
|
|
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
// This can be used to network with other containers or the host.
|
|
// "forwardPorts": [5000, 5432],
|
|
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
|
// "postCreateCommand": "pip install --user -r requirements-dev.txt",
|
|
|
|
//"postAttachCommand": "source /opt/netbox/venv/bin/activate",
|
|
|
|
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
|
"remoteUser": "vscode"
|
|
|
|
}
|