Skip to content

Commit c678c83

Browse files
authored
Merge pull request #166 from datakind/staging
Staging
2 parents 8dbcc7d + 45900ce commit c678c83

File tree

114 files changed

+18798
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+18798
-1
lines changed

.devcontainer/compose.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
services:
2+
app:
3+
build:
4+
context: ..
5+
dockerfile: .devcontainer/dockerfile
6+
volumes:
7+
- ..:/workspace
8+
command: sleep infinity
9+
user: vscode
10+
11+

.devcontainer/devcontainer.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"name": "python 3.10 & uv",
3+
"dockerComposeFile": "compose.yaml",
4+
"service": "app",
5+
"workspaceFolder": "/workspace",
6+
"remoteUser": "vscode",
7+
"runArgs": [
8+
"--userns=keep-id"
9+
],
10+
"containerEnv": {
11+
"HOME": "/home/vscode"
12+
},
13+
"postCreateCommand": ".devcontainer/post-create.sh",
14+
"customizations": {
15+
"vscode": {
16+
"extensions": [
17+
"hashicorp.terraform",
18+
"ms-python.black-formatter"
19+
],
20+
"settings": {
21+
"[python]": {
22+
"editor.defaultFormatter": "ms-python.black-formatter",
23+
"editor.formatOnSave": true
24+
}
25+
}
26+
}
27+
}
28+
}

.devcontainer/dockerfile

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
FROM mcr.microsoft.com/devcontainers/python:3.10-bookworm
2+
3+
# Copy uv and uvx from the official image
4+
COPY --from=ghcr.io/astral-sh/uv:0.4.30 /uv /uvx /bin/
5+
6+
# Enable bytecode compilation
7+
ENV UV_COMPILE_BYTECODE=1
8+
9+
# Copy from the cache instead of linking since it's a mounted volume
10+
ENV UV_LINK_MODE=copy
11+
12+
# Install gcloud cli
13+
RUN echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list && curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg && apt-get update -y && apt-get install google-cloud-cli=500.0.0-0 -y
14+
15+
# Install gh cli
16+
RUN (type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
17+
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
18+
&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
19+
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
20+
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
21+
&& sudo apt update \
22+
&& sudo apt install gh -y
23+
24+
# Install terraform
25+
RUN sudo apt-get update && sudo apt-get install -y gnupg software-properties-common \
26+
&& wget -O- https://apt.releases.hashicorp.com/gpg | \
27+
gpg --dearmor | \
28+
sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg > /dev/null \
29+
&& gpg --no-default-keyring \
30+
--keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg \
31+
--fingerprint \
32+
&& echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] \
33+
https://apt.releases.hashicorp.com $(lsb_release -cs) main" | \
34+
sudo tee /etc/apt/sources.list.d/hashicorp.list \
35+
&& sudo apt update && sudo apt-get install terraform
36+
37+

.devcontainer/post-create.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
source devtools/lib.sh
4+
5+
# Install dependencies
6+
runcmd uv sync --frozen --no-install-project --no-dev
7+
8+
# Init gcloud cli
9+
runcmd gcloud init --skip-diagnostics
10+
runcmd gcloud auth application-default login --impersonate-service-account [email protected]
11+
12+
# Init gh cli
13+
runcmd gh auth login

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Exclude the project virtual environment from image builds
2+
.venv

.github/CODEOWNERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# ref: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners
2+
3+
pdp/ @bdewilde @kaylawilding @vishpillai123
4+
zogotech/ @anzhely
5+
modeling/ @bdewilde
6+
# todo: target bias code => who ??
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: Maintenance task
3+
about: Suggest a maintenance task
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe your maintenance task**
11+
A clear and concise description of what your propose and why it will improve the codebase [...]
12+
13+
**Additional context**
14+
Add any other context or screenshots about the feature request here.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Security issue
3+
about: Report a security issue
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
12+
**Security issue description**
13+
14+
*Describe the security issue here*
15+
16+
**Impact**
17+
18+
*What impact does this security issue have?*
19+
20+
**Mitigation**
21+
22+
*If you have suggestions to mitigate the issue, please provide them here*

0 commit comments

Comments
 (0)