Skip to content
Merged
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
14 changes: 14 additions & 0 deletions .devcontainer/devcontainer-lock.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {
"version": "1.10.0",
"resolved": "ghcr.io/devcontainers/features/docker-outside-of-docker@sha256:c2c2cf829505ead8e4892c88c31b6594ae94a2bbb209e16e1fac456c1a3a624e",
"integrity": "sha256:c2c2cf829505ead8e4892c88c31b6594ae94a2bbb209e16e1fac456c1a3a624e"
},
"ghcr.io/reduxisu/features/rbs:1": {
"version": "1.0.0",
"resolved": "ghcr.io/reduxisu/features/rbs@sha256:65cfaf2554fb1707ea84cf34f3defbd1f34ba528b359627e70e423f7ac7da3e6",
"integrity": "sha256:65cfaf2554fb1707ea84cf34f3defbd1f34ba528b359627e70e423f7ac7da3e6"
}
}
}
25 changes: 25 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "quantumsolver",
"image": "mcr.microsoft.com/devcontainers/python:3.13",
"features": {
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": { "moby": false },
"ghcr.io/reduxisu/features/rbs:1": {}
},
"mounts": [
"source=quantumsolver-venv,target=${containerWorkspaceFolder}/.venv,type=volume"
],
"appPort": [27100],
"portsAttributes": {
"27100": { "label": "quantumsolver (Flask)", "onAutoForward": "notify" }
},
"containerUser": "vscode",
"remoteUser": "vscode",
"updateRemoteUserUID": true,
"postStartCommand": "if [ \"$(stat -c %U /workspaces/quantumsolver)\" != \"vscode\" ]; then sudo chown -R vscode:vscode /workspaces/quantumsolver; fi",
"postCreateCommand": "bash .devcontainer/post-create.sh",
"customizations": {
"vscode": {
"extensions": ["ms-python.python", "charliermarsh.ruff", "ms-python.black-formatter"]
}
}
}
8 changes: 8 additions & 0 deletions .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -euo pipefail

# .venv is a container-local volume so it never collides with the host venv; make it writable.
sudo chown "$(id -u):$(id -g)" .venv

# uv is provided by the rbs feature; it installs system-wide to /usr/local/bin.
uv sync --all-groups
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ htmlcov/
dist/
requirements.audit.txt

# rbs pipeline output
.rbs/
report.md

# editor/OS artifacts
.DS_Store
*.swp
18 changes: 18 additions & 0 deletions rbs.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Redux Build System pipeline config. See github.com/ReduxISU/Redux_Build_System.
engine = "uv"
package = "quantumsolver"

[unit-test]
python-versions = ["3.12", "3.13"]
coverage-min = 85

[artifact]
image = "ghcr.io/reduxisu/quantumsolver"
port = 27100
health-path = "/health"

[integration]
command = "uv run pytest tests/integration -v"

[push]
on-branch = "main"
Loading