mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-02-04 16:01:55 +00:00
* add devcontainer support * chore(devcontainer): install test requirements * chore: add pre-commit * fix format of pre-commit config file * add licenses for the new files * Apply suggestions from code review * move requirements-dev.txt to inside .devcontainer * specify files for ruff * update CONTRIBUTING.md * chore(devcontainer): use standard image, no docker build * docs: format CONTRIBUTING.md (automatic by IDE) * Update .devcontainer/devcontainer.json * remove extraneous edits in CONTRIBUTING.md
34 lines
1.1 KiB
JSON
34 lines
1.1 KiB
JSON
{
|
|
"name": "community.general devcontainer",
|
|
"image": "mcr.microsoft.com/devcontainers/python:3.14-bookworm",
|
|
"features": {
|
|
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
|
|
},
|
|
"customizations": {
|
|
"vscode": {
|
|
"settings": {
|
|
"terminal.integrated.shell.linux": "/bin/bash",
|
|
"python.pythonPath": "/usr/local/bin/python",
|
|
"editor.defaultFormatter": "charliermarsh.ruff",
|
|
"editor.formatOnSave": true,
|
|
"files.autoSave": "afterDelay",
|
|
"files.eol": "\n",
|
|
"files.insertFinalNewline": true,
|
|
"files.trimFinalNewlines": true,
|
|
"files.trimTrailingWhitespace": true
|
|
},
|
|
"extensions": [
|
|
"charliermarsh.ruff",
|
|
"ms-python.python",
|
|
"ms-python.vscode-pylance",
|
|
"redhat.ansible",
|
|
"redhat.vscode-yaml",
|
|
"trond-snekvik.simple-rst",
|
|
]
|
|
}
|
|
},
|
|
"remoteUser": "vscode",
|
|
"postCreateCommand": ".devcontainer/setup.sh",
|
|
"workspaceFolder": "/workspace/ansible_collections/community/general",
|
|
"workspaceMount": "source=${localWorkspaceFolder},target=/workspace/ansible_collections/community/general,type=bind"
|
|
}
|