-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Dev Container Configuration (#162)
* Add dev container and development documentation * Remove note on venv * Bump artifacts action
- Loading branch information
1 parent
9fdc8b1
commit 93a8698
Showing
5 changed files
with
100 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"name": "abbfreeathome-dev", | ||
"image": "mcr.microsoft.com/devcontainers/python:1-3.12-bookworm", | ||
"features": { | ||
"ghcr.io/va-h/devcontainers-features/uv:latest": { | ||
"shellautocompletion": true | ||
}, | ||
"ghcr.io/devcontainers-extra/features/pre-commit:2": {} | ||
}, | ||
"containerEnv": { | ||
"UV_LINK_MODE": "copy" | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"charliermarsh.ruff", | ||
"ms-python.pylint", | ||
"ms-python.vscode-pylance", | ||
"visualstudioexptteam.vscodeintellicode", | ||
"ms-python.debugpy", | ||
"esbenp.prettier-vscode", | ||
"GitHub.vscode-pull-request-github", | ||
"GitHub.copilot", | ||
"waderyan.gitblame" | ||
], | ||
"settings": { | ||
"editor.formatOnSave": true, | ||
"editor.tabSize": 2, | ||
"editor.insertSpaces": true, | ||
"editor.detectIndentation": false, | ||
"files.insertFinalNewline": true, | ||
"files.trimTrailingWhitespace": true, | ||
"python.defaultInterpreterPath": "/workspaces/local-abbfreeathome/.venv/bin/python", | ||
"python.terminal.activateEnvInCurrentTerminal": true, | ||
"python.testing.pytestArgs": [ | ||
"." | ||
], | ||
"[python]": { | ||
"editor.defaultFormatter": "charliermarsh.ruff" | ||
}, | ||
"python.testing.unittestEnabled": false, | ||
"python.testing.pytestEnabled": true, | ||
"gitblame.statusBarMessageFormat": "Modified By ${author.name} (${time.ago})", | ||
"gitblame.inlineMessageFormat": "Modified By ${author.name} (${time.ago})", | ||
} | ||
} | ||
}, | ||
"postCreateCommand": "uv venv && uv pip install -r src/abbfreeathome/dev-requirements.txt && pre-commit install" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
aiohttp!=3.11.0 | ||
aioresponses | ||
backoff | ||
build | ||
packaging | ||
pre-commit | ||
pytest | ||
pytest-asyncio | ||
pytest-cov | ||
pytest-env | ||
ruff | ||
ruff |