Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ARG UV_VERSION=0.11.16
FROM ghcr.io/astral-sh/uv:${UV_VERSION} AS uv

FROM mcr.microsoft.com/devcontainers/python:3.12

COPY --from=uv /uv /uvx /usr/local/bin/
28 changes: 28 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "OpenDecree Python SDK",
"build": {
"dockerfile": "Dockerfile"
},
"postCreateCommand": "uv venv --python 3.12 .venv && uv pip install --python .venv/bin/python -e \"sdk[dev]\"",
"remoteEnv": {
"VIRTUAL_ENV": "${workspaceFolder}/.venv",
"PATH": "${workspaceFolder}/.venv/bin:${containerEnv:PATH}"
},
"customizations": {
"vscode": {
"settings": {
"python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python",
"python.testing.pytestArgs": [
"sdk/tests"
],
"python.testing.pytestEnabled": true,
"ruff.nativeServer": "on"
},
"extensions": [
"ms-python.python",
"ms-python.mypy-type-checker",
"charliermarsh.ruff"
]
}
}
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
[![License](https://img.shields.io/github/license/opendecree/decree-python)](LICENSE)
[![Project Status: WIP](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)
[![codecov](https://codecov.io/gh/opendecree/decree-python/graph/badge.svg)](https://codecov.io/gh/opendecree/decree-python)
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/opendecree/decree-python)

Python SDK for [OpenDecree](https://github.com/opendecree/decree) — schema-driven configuration management.

Expand Down