Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1388 commits
Select commit Hold shift + click to select a range
9ed2271
feat: added option for api auth
Mesh-ach Jun 4, 2025
4bdaea0
feat: added option for api auth
Mesh-ach Jun 4, 2025
ea08663
feat: added option for api auth
Mesh-ach Jun 4, 2025
b69c428
feat: added option for api auth
Mesh-ach Jun 4, 2025
788093f
feat: added option for api auth
Mesh-ach Jun 4, 2025
1010235
feat: added option for api auth
Mesh-ach Jun 4, 2025
bc8a359
Merge pull request #95 from datakind/develop
Mesh-ach Jun 4, 2025
cd538ee
feat: added option for api auth
Mesh-ach Jun 4, 2025
47129ef
Merge pull request #96 from datakind/develop
Mesh-ach Jun 4, 2025
715019b
feat: added option for api auth
Mesh-ach Jun 4, 2025
be36c20
Merge pull request #97 from datakind/develop
Mesh-ach Jun 4, 2025
fdc272e
feat: added option for api auth
Mesh-ach Jun 4, 2025
510576d
Merge pull request #98 from datakind/develop
Mesh-ach Jun 4, 2025
908aef6
feat: added option for api auth
Mesh-ach Jun 5, 2025
7e44786
feat: added option for api auth
Mesh-ach Jun 5, 2025
93fbd24
feat: added option for api auth
Mesh-ach Jun 5, 2025
37bc12b
Merge pull request #99 from datakind/develop
Mesh-ach Jun 5, 2025
7fa1584
feat: added option for api auth
Mesh-ach Jun 5, 2025
127cb12
feat: added option for api auth
Mesh-ach Jun 5, 2025
5bd7474
feat: added option for api auth
Mesh-ach Jun 5, 2025
0544c00
Merge pull request #100 from datakind/develop
Mesh-ach Jun 5, 2025
d525382
feat: added option for api auth
Mesh-ach Jun 5, 2025
b2789dc
Merge pull request #102 from datakind/develop
Mesh-ach Jun 5, 2025
fcffe8e
feat: added option for api auth
Mesh-ach Jun 5, 2025
1aed460
Merge pull request #103 from datakind/develop
Mesh-ach Jun 5, 2025
fbd0da6
feat: added option for api auth
Mesh-ach Jun 5, 2025
e372c0e
Merge pull request #104 from datakind/develop
Mesh-ach Jun 5, 2025
25c69d0
feat: added option for api auth
Mesh-ach Jun 5, 2025
289d9a4
Merge pull request #105 from datakind/develop
Mesh-ach Jun 5, 2025
b6043c9
feat: added option for api auth
Mesh-ach Jun 5, 2025
3f40549
Merge pull request #106 from datakind/develop
Mesh-ach Jun 5, 2025
7f40dc4
feat: added option training support dist
Mesh-ach Jun 5, 2025
35c8154
feat: added option for api auth
Mesh-ach Jun 5, 2025
57a256f
adjusted api authentication
Mesh-ach Jun 9, 2025
9caee14
adjusted api authentication
Mesh-ach Jun 9, 2025
05bcd6d
adjusted api authentication
Mesh-ach Jun 9, 2025
6be5509
adjusted api authentication
Mesh-ach Jun 9, 2025
f12709f
adjusted api authentication
Mesh-ach Jun 9, 2025
22f7fd1
Merge pull request #107 from datakind/api-auth
Mesh-ach Jun 9, 2025
d111ca7
adjusted api authentication
Mesh-ach Jun 9, 2025
e32ec02
Merge pull request #108 from datakind/develop
Mesh-ach Jun 9, 2025
a429b42
Merge pull request #109 from datakind/api-auth
Mesh-ach Jun 9, 2025
e571389
fix: adjusted validation schemas
Mesh-ach Jun 11, 2025
1890a89
Merge branch 'develop' of https://github.com/datakind/sst-app-api int…
Mesh-ach Jun 11, 2025
a9662fd
Merge branch 'staging' of https://github.com/datakind/sst-app-api int…
Mesh-ach Jun 11, 2025
9402e96
fix: adjusted validation schemas
Mesh-ach Jun 11, 2025
86f925e
Merge pull request #111 from datakind/Validation-Errors
Mesh-ach Jun 11, 2025
5c9d02e
Merge pull request #110 from datakind/develop
Mesh-ach Jun 11, 2025
7dfaf8a
adjusted validation schema to eliminite double schema specification
Mesh-ach Jun 17, 2025
8c1a5bf
resolved validation errors
Mesh-ach Jun 17, 2025
d02eeaa
resolved validation errors
Mesh-ach Jun 17, 2025
b3b81a1
resolved validation errors
Mesh-ach Jun 17, 2025
f842424
resolved validation errors
Mesh-ach Jun 17, 2025
2b30fe8
resolved validation errors
Mesh-ach Jun 17, 2025
16d0cf3
resolved validation errors
Mesh-ach Jun 17, 2025
37c0596
resolved validation errors
Mesh-ach Jun 17, 2025
ea5443e
resolved validation errors
Mesh-ach Jun 17, 2025
2bdf6c7
resolved validation errors
Mesh-ach Jun 17, 2025
f680acc
fix test issues
Mesh-ach Jun 17, 2025
e1d45a3
fix test issues
Mesh-ach Jun 17, 2025
4eb6286
fix test issues
Mesh-ach Jun 17, 2025
a69d059
fix test issues
Mesh-ach Jun 17, 2025
9001413
fix test issues
Mesh-ach Jun 17, 2025
89ec2c4
fix test issues
Mesh-ach Jun 17, 2025
3c7e9d4
fix test issues
Mesh-ach Jun 17, 2025
ca68c32
Merge pull request #112 from datakind/Validation-Errors
Mesh-ach Jun 18, 2025
eaea033
adjusted commit info
Mesh-ach Jun 18, 2025
6ad8c56
adjusted commit info
Mesh-ach Jun 18, 2025
fb1c8c8
adjusted commit info
Mesh-ach Jun 18, 2025
525bf3f
Merge pull request #113 from datakind/develop
Mesh-ach Jun 18, 2025
d8b7d74
fix schema errors
Mesh-ach Jun 18, 2025
4c83483
Merge pull request #114 from datakind/develop
Mesh-ach Jun 18, 2025
fa26437
fix schema errors
Mesh-ach Jun 18, 2025
b22ca34
Merge pull request #115 from datakind/develop
Mesh-ach Jun 18, 2025
b19a7ac
fix schema errors
Mesh-ach Jun 18, 2025
73df077
fix schema errors
Mesh-ach Jun 18, 2025
713937b
Merge pull request #116 from datakind/develop
Mesh-ach Jun 18, 2025
fc79f66
adjust error logging
Mesh-ach Jun 18, 2025
ee80f56
Merge pull request #117 from datakind/develop
Mesh-ach Jun 18, 2025
ffac8db
adjusted schema configuration
Mesh-ach Jun 18, 2025
da5b64e
Merge pull request #118 from datakind/develop
Mesh-ach Jun 18, 2025
d75648a
adjusted schema configuration
Mesh-ach Jun 18, 2025
7f1aac2
adjusted schema configuration
Mesh-ach Jun 18, 2025
6cfa4df
Merge pull request #119 from datakind/develop
Mesh-ach Jun 18, 2025
77d5db6
added logging to webapp db file
Jun 20, 2025
d00888a
type check
Jun 20, 2025
002b8bc
type check
Jun 20, 2025
f7e95eb
type check
Jun 20, 2025
7019dc3
pls mypy
Jun 20, 2025
a9aa812
type check:
Jun 20, 2025
7439376
adding type cast
Jun 20, 2025
653cd65
debugging
Jun 20, 2025
bb28db9
lint
Jun 20, 2025
28d7bf1
reformatted
Jun 20, 2025
d4b8b83
reformatted
Jun 20, 2025
d7d61dc
Merge pull request #120 from datakind/adding_logging_into_db_file
vishpillai123 Jun 20, 2025
8ab2955
Merge pull request #121 from datakind/develop
vishpillai123 Jun 23, 2025
0feb6e2
Added endpoint for front end table
Mesh-ach Jun 23, 2025
3fc0a1d
Added endpoint for front end table
Mesh-ach Jun 23, 2025
326bd40
Added endpoint for front end table
Mesh-ach Jun 23, 2025
fb913be
Added endpoint for front end table
Mesh-ach Jun 23, 2025
2ce596b
Added endpoint for front end table
Mesh-ach Jun 23, 2025
fd40d9e
Added endpoint for front end table
Mesh-ach Jun 23, 2025
eb4d32e
Merge pull request #122 from datakind/AdjustedFETables
Mesh-ach Jun 24, 2025
0410e60
Merge pull request #123 from datakind/develop
Mesh-ach Jun 24, 2025
877d2f2
fix: schema
Mesh-ach Jul 2, 2025
5acaa6a
added databricks file pull func
Mesh-ach Jul 9, 2025
9ae7f48
added databricks file pull func
Mesh-ach Jul 9, 2025
42893a6
added databricks file pull func
Mesh-ach Jul 9, 2025
9ac1e05
added databricks file pull func
Mesh-ach Jul 9, 2025
b6c4f08
collapsed segregated funcs into one entity
Mesh-ach Jul 9, 2025
0f3ae6e
collapsed segregated funcs into one entity
Mesh-ach Jul 9, 2025
7cc178b
adjusted endpoint call order
Mesh-ach Jul 9, 2025
de6b2b4
added logging
Mesh-ach Jul 9, 2025
efb4667
fixed linting issues
Mesh-ach Jul 9, 2025
b1026e7
Merge pull request #124 from datakind/ModelCardEndpoint
Mesh-ach Jul 9, 2025
c1d0c4d
fixed package issues
Mesh-ach Jul 9, 2025
355bce2
Merge pull request #125 from datakind/ModelCardEndpoint
Mesh-ach Jul 9, 2025
50b2ac7
Merge pull request #126 from datakind/develop
Mesh-ach Jul 10, 2025
9147914
fixed endpoint issues
Mesh-ach Jul 10, 2025
78bcced
fixed endpoint issues
Mesh-ach Jul 10, 2025
4c26170
fixed endpoint issues
Mesh-ach Jul 10, 2025
860c097
fixed endpoint issues
Mesh-ach Jul 10, 2025
18b34a6
fixed endpoint issues
Mesh-ach Jul 10, 2025
e0b09b7
Merge pull request #127 from datakind/ModelCardEndpoint
Mesh-ach Jul 10, 2025
f71e9aa
Merge pull request #128 from datakind/develop
Mesh-ach Jul 10, 2025
7af6306
fixed endpoint issues
Mesh-ach Jul 14, 2025
671f8d7
fixed endpoint issues
Mesh-ach Jul 14, 2025
64e6114
fixed endpoint issues
Mesh-ach Jul 14, 2025
0a950f2
fixed endpoint issues
Mesh-ach Jul 14, 2025
43bdf5f
fixed endpoint issues
Mesh-ach Jul 14, 2025
8f2f06a
Merge pull request #129 from datakind/ModelCardEndpoint
Mesh-ach Jul 14, 2025
d31c826
Merge pull request #130 from datakind/develop
Mesh-ach Jul 14, 2025
ad2b530
fixed endpoint issues
Mesh-ach Jul 14, 2025
a54b01b
fixed endpoint issues
Mesh-ach Jul 14, 2025
fea2f9b
fixed endpoint issues
Mesh-ach Jul 14, 2025
366e1e9
fixed endpoint issues
Mesh-ach Jul 14, 2025
1f0d7f5
fixed endpoint issues
Mesh-ach Jul 14, 2025
8ca9142
fixed endpoint issues
Mesh-ach Jul 14, 2025
571d379
fixed endpoint issues
Mesh-ach Jul 14, 2025
915e433
Merge pull request #132 from datakind/ModelCardEndpoint
Mesh-ach Jul 14, 2025
0b8d5f2
Merge pull request #131 from datakind/develop
Mesh-ach Jul 14, 2025
00b02fc
fixed endpoint issues
Mesh-ach Jul 14, 2025
635fb5d
Merge pull request #133 from datakind/ModelCardEndpoint
Mesh-ach Jul 14, 2025
96012f7
Merge pull request #134 from datakind/develop
Mesh-ach Jul 14, 2025
730aae3
fixed endpoint issues
Mesh-ach Jul 14, 2025
23c95b7
Merge pull request #135 from datakind/ModelCardEndpoint
Mesh-ach Jul 14, 2025
44da7d5
fixed endpoint issues
Mesh-ach Jul 14, 2025
dceeffa
Merge pull request #137 from datakind/ModelCardEndpoint
Mesh-ach Jul 14, 2025
1b1df51
Merge pull request #136 from datakind/develop
Mesh-ach Jul 14, 2025
d1ec68e
fixed endpoint issues
Mesh-ach Jul 14, 2025
d638514
feat: published schema_registry table in cloud sql
Mesh-ach Jul 20, 2025
6ee04b9
feat: adjusted validation logic
Mesh-ach Jul 20, 2025
cf1d775
feat: adjusted validation logic
Mesh-ach Jul 20, 2025
1235047
feat: adjusted validation logic
Mesh-ach Jul 20, 2025
80c3854
feat: adjusted database logic
Mesh-ach Jul 20, 2025
b27bcbd
feat: adjusted database logic
Mesh-ach Jul 20, 2025
109d9c7
feat: adjusted database logic
Mesh-ach Jul 20, 2025
e9d4170
feat: adjusted database logic
Mesh-ach Jul 20, 2025
c538f94
feat: adjusted database logic
Mesh-ach Jul 20, 2025
cb13b88
feat: adjusted database logic
Mesh-ach Jul 20, 2025
0e4a8dc
feat: adjusted database logic
Mesh-ach Jul 20, 2025
a0350ca
feat: adjusted database logic
Mesh-ach Jul 20, 2025
a3a41e9
feat: adjusted database logic
Mesh-ach Jul 20, 2025
68216a5
feat: adjusted database logic
Mesh-ach Jul 20, 2025
1b1d996
feat: adjusted database logic
Mesh-ach Jul 20, 2025
f40071c
feat: adjusted database logic
Mesh-ach Jul 20, 2025
7757ca3
feat: adjusted database logic
Mesh-ach Jul 21, 2025
39aabd3
feat: adjusted database logic
Mesh-ach Jul 21, 2025
28bf01c
fix: type checks
Mesh-ach Jul 21, 2025
114ef9f
fix: type checks
Mesh-ach Jul 21, 2025
1a2edc0
fix: type checks
Mesh-ach Jul 21, 2025
3b2d18f
fix: type checks
Mesh-ach Jul 21, 2025
7336f4e
fix: type checks
Mesh-ach Jul 21, 2025
952705e
feat: added length guards for all varchar variables
Mesh-ach Jul 21, 2025
50bd248
fix: type checks
Mesh-ach Jul 21, 2025
3f5a4ee
fix: type checks
Mesh-ach Jul 21, 2025
03ec835
fix: type checks
Mesh-ach Jul 21, 2025
4b89e18
fix: type checks
Mesh-ach Jul 21, 2025
1e06583
Merge pull request #138 from datakind/SchemaOptim
Mesh-ach Jul 21, 2025
42311af
fix: type checks
Mesh-ach Jul 21, 2025
6ce08bb
trying to fix type check
Jul 24, 2025
7e34c9e
running black
Jul 24, 2025
13deb12
trying to fix type check
Jul 24, 2025
0780b14
correcting nullable=False which is causing unit test issues
Jul 25, 2025
047e14a
fixing nullable=False and default for unit tests
Jul 25, 2025
a03adff
lint
Jul 25, 2025
93fb931
Merge pull request #139 from datakind/develop
vishpillai123 Jul 25, 2025
1450b94
feat: added extension generator script
Mesh-ach Aug 11, 2025
6970af9
fix: adjusted schema generator
Mesh-ach Aug 12, 2025
7aaccca
fix: adjusted schema generator
Mesh-ach Aug 12, 2025
2807df3
fix: adjusted schema generator
Mesh-ach Aug 12, 2025
0b4bbfa
fix: linting
Mesh-ach Aug 12, 2025
82c6942
fix: linting
Mesh-ach Aug 12, 2025
8ed0434
fix: linting
Mesh-ach Aug 12, 2025
3f13887
fix: linting
Mesh-ach Aug 12, 2025
9df1e99
fix: linting
Mesh-ach Aug 12, 2025
71863c4
fix: linting
Mesh-ach Aug 12, 2025
c528470
fix: linting
Mesh-ach Aug 12, 2025
b09518c
fix: linting
Mesh-ach Aug 12, 2025
41c35df
fix: linting
Mesh-ach Aug 12, 2025
aaa8017
fix: linting
Mesh-ach Aug 12, 2025
af17d3f
fix: linting
Mesh-ach Aug 12, 2025
887f946
fix: linting
Mesh-ach Aug 12, 2025
696bdf4
fix: linting
Mesh-ach Aug 12, 2025
e2f294c
fix: linting
Mesh-ach Aug 12, 2025
6ca86fc
fix: linting
Mesh-ach Aug 12, 2025
b7141c8
fix: linting
Mesh-ach Aug 12, 2025
908cd1d
adjusted schema generatio logic
Mesh-ach Aug 12, 2025
d93a7a9
adjusted schema generatio logic
Mesh-ach Aug 12, 2025
f340153
adjusted schema generatio logic
Mesh-ach Aug 12, 2025
d4b3244
adjusted schema generatio logic
Mesh-ach Aug 12, 2025
dd90b69
adjusted schema generatio logic
Mesh-ach Aug 12, 2025
48dfcd6
adjusted schema generatio logic
Mesh-ach Aug 12, 2025
c4657e0
attempting to pin deps so that repo is more robust to package updates
Aug 12, 2025
40f22e9
fixed test issues
Mesh-ach Aug 12, 2025
aa46254
fixed test issues
Mesh-ach Aug 12, 2025
68ba40c
fixed test issues
Mesh-ach Aug 12, 2025
55fff94
fixed test issues
Mesh-ach Aug 12, 2025
e262392
fixed test issues
Mesh-ach Aug 12, 2025
0d407a8
fixed test issues
Mesh-ach Aug 12, 2025
e86350b
Merge pull request #141 from datakind/fix/pinning-deps
Mesh-ach Aug 12, 2025
bddab22
Merge branch 'develop' of github.com-work:datakind/sst-app-api into E…
Mesh-ach Aug 12, 2025
168dc1e
fix: deps issues pulled from dev
Mesh-ach Aug 12, 2025
a931c77
fix: deps issues pulled from dev
Mesh-ach Aug 12, 2025
9f25f4e
renamed confusing func
Mesh-ach Aug 12, 2025
a9137fe
Merge pull request #140 from datakind/ExtensionGenerator
Mesh-ach Aug 12, 2025
87ea884
fixL linting
Mesh-ach Aug 12, 2025
a027953
Merge pull request #142 from datakind/ExtensionGenerator
Mesh-ach Aug 12, 2025
f7bf35f
added delete batch endpoint
Mesh-ach Aug 13, 2025
bc01678
added delete batch endpoint
Mesh-ach Aug 13, 2025
f7e8b19
fix linting errors
Mesh-ach Aug 13, 2025
1da5dfa
fix linting errors
Mesh-ach Aug 13, 2025
daaa86c
fix linting errors
Mesh-ach Aug 13, 2025
85341ec
fix linting errors
Mesh-ach Aug 13, 2025
2c3ce4f
Merge pull request #143 from datakind/DeleteBatch
Mesh-ach Aug 13, 2025
9a32f25
fix linting errors
Mesh-ach Aug 13, 2025
12f1119
Merge pull request #144 from datakind/DeleteBatch
Mesh-ach Aug 13, 2025
f3bd7fa
fix linting errors
Mesh-ach Aug 13, 2025
cdb28cf
fix linting errors
Mesh-ach Aug 13, 2025
123c05b
fix linting errors
Mesh-ach Aug 13, 2025
0741bcd
Merge pull request #145 from datakind/DeleteBatch
Mesh-ach Aug 13, 2025
34b0f8b
Merge pull request #146 from datakind/develop
Mesh-ach Aug 13, 2025
5dca78c
adjusted route
Mesh-ach Aug 13, 2025
8156997
Merge pull request #147 from datakind/develop
Mesh-ach Aug 13, 2025
eb3f8d3
feat: added boxplot endpoint
Mesh-ach Sep 1, 2025
ea9eca6
fix: linting
Mesh-ach Sep 1, 2025
324e706
fix: linting
Mesh-ach Sep 1, 2025
d6329ab
Merge pull request #148 from datakind/BoxPlotEndpoint
Mesh-ach Sep 1, 2025
45900ce
Merge pull request #149 from datakind/develop
Mesh-ach Sep 2, 2025
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
11 changes: 11 additions & 0 deletions .devcontainer/compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
services:
app:
build:
context: ..
dockerfile: .devcontainer/dockerfile
volumes:
- ..:/workspace
command: sleep infinity
user: vscode


28 changes: 28 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"name": "python 3.10 & uv",
"dockerComposeFile": "compose.yaml",
"service": "app",
"workspaceFolder": "/workspace",
"remoteUser": "vscode",
"runArgs": [
"--userns=keep-id"
],
"containerEnv": {
"HOME": "/home/vscode"
},
"postCreateCommand": ".devcontainer/post-create.sh",
"customizations": {
"vscode": {
"extensions": [
"hashicorp.terraform",
"ms-python.black-formatter"
],
"settings": {
"[python]": {
"editor.defaultFormatter": "ms-python.black-formatter",
"editor.formatOnSave": true
}
}
}
}
}
37 changes: 37 additions & 0 deletions .devcontainer/dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
FROM mcr.microsoft.com/devcontainers/python:3.10-bookworm

# Copy uv and uvx from the official image
COPY --from=ghcr.io/astral-sh/uv:0.4.30 /uv /uvx /bin/

# Enable bytecode compilation
ENV UV_COMPILE_BYTECODE=1

# Copy from the cache instead of linking since it's a mounted volume
ENV UV_LINK_MODE=copy

# Install gcloud cli
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

# Install gh cli
RUN (type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& 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 \
&& sudo apt update \
&& sudo apt install gh -y

# Install terraform
RUN sudo apt-get update && sudo apt-get install -y gnupg software-properties-common \
&& wget -O- https://apt.releases.hashicorp.com/gpg | \
gpg --dearmor | \
sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg > /dev/null \
&& gpg --no-default-keyring \
--keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg \
--fingerprint \
&& echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] \
https://apt.releases.hashicorp.com $(lsb_release -cs) main" | \
sudo tee /etc/apt/sources.list.d/hashicorp.list \
&& sudo apt update && sudo apt-get install terraform


13 changes: 13 additions & 0 deletions .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash

source devtools/lib.sh

# Install dependencies
runcmd uv sync --frozen --no-install-project --no-dev

# Init gcloud cli
runcmd gcloud init --skip-diagnostics
runcmd gcloud auth application-default login --impersonate-service-account [email protected]

# Init gh cli
runcmd gh auth login
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Exclude the project virtual environment from image builds
.venv
6 changes: 6 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# ref: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners

pdp/ @bdewilde @kaylawilding @vishpillai123
zogotech/ @anzhely
modeling/ @bdewilde
# todo: target bias code => who ??
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/maintenance_task.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Maintenance task
about: Suggest a maintenance task
title: ''
labels: ''
assignees: ''

---

**Describe your maintenance task**
A clear and concise description of what your propose and why it will improve the codebase [...]

**Additional context**
Add any other context or screenshots about the feature request here.
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/security_issue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Security issue
about: Report a security issue
title: ''
labels: ''
assignees: ''

---

**Describe the bug**

**Security issue description**

*Describe the security issue here*

**Impact**

*What impact does this security issue have?*

**Mitigation**

*If you have suggestions to mitigate the issue, please provide them here*
11 changes: 11 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!--- Provide a brief description of your changes in the title above. -->

## changes
<!--- Describe your changes in detail, to guide reviewers through the git diff. -->

## context
<!--- Why are these change required? What problem does it solve? -->
<!--- If this fixes an open issue / is ticketed, put the link(s) here! -->

## questions
<!--- Ask any specific questions that you'd like reviewers to address. -->
23 changes: 23 additions & 0 deletions .github/actions/setup-python-env/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Set Up Python Environment"

inputs:
python-version:
description: "Python version to use"
required: true

runs:
using: composite
steps:
- name: Install python
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "0.5.4"
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Install project and dependencies
run: uv sync --frozen --dev
shell: bash
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
21 changes: 21 additions & 0 deletions .github/workflows/branch_security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Enforce PR Source Branch

on:
pull_request:
branches:
- staging
- prod

jobs:
check-source-branch:
runs-on: ubuntu-latest
steps:
- name: Check PR source branch
run: |
if [[ "$GITHUB_BASE_REF" == "staging" && "$GITHUB_HEAD_REF" != "develop" ]]; then
echo "Only 'develop' can merge into 'staging'"
exit 1
elif [[ "$GITHUB_BASE_REF" == "prod" && "$GITHUB_HEAD_REF" != "staging" ]]; then
echo "Only 'staging' can merge into 'prod'"
exit 1
fi
24 changes: 24 additions & 0 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: pre-release

on:
# pull request targeting main branch
pull_request:
branches: [main]

jobs:
check-changelog:
runs-on: ubuntu-latest
permissions:
pull-requests: read
steps:
- name: Get changed files
id: changed-files
uses: step-security/changed-files@v45
with:
files: |
CHANGELOG.md
- name: Ensure changelog updated
if: steps.changed-files.outputs.any_changed == 'false'
run: |
echo "CHANGELOG.md file must be updated with release notes"
exit 1
34 changes: 34 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: publish

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python environment
uses: ./.github/actions/setup-python-env
with:
python-version: "3.10"
- name: Build package
run: |
uv build --python "3.10"
- name: Publish package to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
verify-metadata: true
verbose: true
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
verify-metadata: true
verbose: true
30 changes: 30 additions & 0 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: style

on:
pull_request: # any pull request

jobs:
style:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python environment
uses: ./.github/actions/setup-python-env
with:
python-version: "3.10"
- name: Get changed files
id: changed-files
uses: step-security/changed-files@v45
with:
files: |
**.py
**.ipynb
- name: Run linter
if: steps.changed-files.outputs.any_changed == 'true'
run: |
uv tool run ruff check ${{ steps.changed-files.outputs.all_changed_files }}
- name: Run formatter
if: steps.changed-files.outputs.any_changed == 'true'
run: |
uv tool run ruff format --check ${{ steps.changed-files.outputs.all_changed_files }}
24 changes: 24 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: test

on:
pull_request: # any pull request
schedule: # run weekly
- cron: "0 12 * * 0"

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python environment
uses: ./.github/actions/setup-python-env
with:
python-version: ${{ matrix.python-version }}
- name: Run tests
run: |
uv run python -m pytest
Loading
Loading