|
| 1 | +{ |
| 2 | + "containerEnv": { |
| 3 | + "POETRY_VIRTUALENVS_IN_PROJECT": "true" |
| 4 | + }, |
| 5 | + "customizations": { |
| 6 | + "codespaces": { |
| 7 | + "openFiles": [ |
| 8 | + "README.md", |
| 9 | + "pyhilo/api.py", |
| 10 | + "pyhilo/devices.py" |
| 11 | + ] |
| 12 | + }, |
| 13 | + "vscode": { |
| 14 | + "extensions": [ |
| 15 | + "charliermarsh.ruff", |
| 16 | + "esbenp.prettier-vscode", |
| 17 | + "esbenp.prettier-vscode", |
| 18 | + "GitHub.vscode-github-actions", |
| 19 | + "GitHub.vscode-pull-request-github", |
| 20 | + "ms-python.mypy-type-checker", |
| 21 | + "ms-python.pylint", |
| 22 | + "ms-python.python", |
| 23 | + "ms-python.vscode-pylance", |
| 24 | + "redhat.vscode-yaml", |
| 25 | + "redhat.vscode-yaml", |
| 26 | + "ryanluker.vscode-ecoverage-gutters", |
| 27 | + "visualstudioexptteam.vscodeintellicode" |
| 28 | + ], |
| 29 | + "settings": { |
| 30 | + "[python]": { |
| 31 | + "editor.codeActionsOnSave": { |
| 32 | + "source.fixAll": true, |
| 33 | + "source.organizeImports": true, |
| 34 | + "files.trimTrailingWhitespace": true |
| 35 | + } |
| 36 | + }, |
| 37 | + "coverage-gutters.customizable.context-menu": true, |
| 38 | + "coverage-gutters.customizable.status-bar-toggler-watchCoverageAndVisibleEditors-enabled": true, |
| 39 | + "coverage-gutters.showGutterCoverage": false, |
| 40 | + "coverage-gutters.showLineCoverage": true, |
| 41 | + "coverage-gutters.xmlname": "coverage.xml", |
| 42 | + "python.analysis.extraPaths": ["${workspaceFolder}/pyhilo"], |
| 43 | + "python.defaultInterpreterPath": ".venv/bin/python", |
| 44 | + "python.formatting.provider": "ruff", |
| 45 | + "python.testing.cwd": "${workspaceFolder}", |
| 46 | + "python.testing.pytestArgs": ["--cov-report=xml"], |
| 47 | + "python.testing.pytestEnabled": true, |
| 48 | + "ruff.importStrategy": "fromEnvironment", |
| 49 | + "ruff.interpreter": [".venv/bin/python"], |
| 50 | + "terminal.integrated.defaultProfile.linux": "zsh" |
| 51 | + } |
| 52 | + } |
| 53 | + }, |
| 54 | + "features": { |
| 55 | + "ghcr.io/devcontainers-contrib/features/poetry:2": {}, |
| 56 | + "ghcr.io/devcontainers/features/github-cli:1": {}, |
| 57 | + "ghcr.io/devcontainers/features/node:1": {}, |
| 58 | + "ghcr.io/devcontainers/features/python:1": { |
| 59 | + "installTools": false |
| 60 | + } |
| 61 | + }, |
| 62 | + "image": "mcr.microsoft.com/devcontainers/python:3", |
| 63 | + "name": "A Python3, async interface to the Hilo API", |
| 64 | + "updateContentCommand": ". ${NVM_DIR}/nvm.sh && nvm install && nvm use && npm install && poetry install && poetry run pre-commit install" |
| 65 | +} |
0 commit comments