Skip to content

Commit ad2b068

Browse files
authored
Update repo
Signed-off-by: GitHub <[email protected]>
1 parent 01491dd commit ad2b068

14 files changed

+385
-1386
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"features": {
3-
"ghcr.io/devcontainers/features/python:1.6.5": {
4-
"version": "1.6.5",
5-
"resolved": "ghcr.io/devcontainers/features/python@sha256:f5e1557b5745bcc3aa8f12eaa1084b8d63952d73e776c406214d65f593aae6d8",
6-
"integrity": "sha256:f5e1557b5745bcc3aa8f12eaa1084b8d63952d73e776c406214d65f593aae6d8"
3+
"ghcr.io/devcontainers/features/python:1.7.1": {
4+
"version": "1.7.1",
5+
"resolved": "ghcr.io/devcontainers/features/python@sha256:cf9b6d879790a594b459845b207c5e1762a0c8f954bb8033ff396e497f9c301b",
6+
"integrity": "sha256:cf9b6d879790a594b459845b207c5e1762a0c8f954bb8033ff396e497f9c301b"
77
}
88
}
99
}

.devcontainer/devcontainer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"image": "mcr.microsoft.com/devcontainers/universal:2",
33
"features": {
4-
"ghcr.io/devcontainers/features/python:1.6.5": {
4+
"ghcr.io/devcontainers/features/python:1.7.1": {
55
"version": "3.12",
66
"installTools": false
77
}

.github/dependabot.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ updates:
1414
patterns:
1515
- "*"
1616

17-
- package-ecosystem: "pip"
17+
- package-ecosystem: "uv"
1818
directory: "/"
1919
schedule:
2020
interval: "monthly"

.github/workflows/container-build-deploy.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ permissions:
1717

1818
jobs:
1919
build-push:
20-
uses: darbiadev/.github/.github/workflows/container-build-push.yaml@41518576ed6c499ed3e68d5cbceaeaa50abd471a # v14.1.0
21-
with:
22-
file-name: Dockerfile
20+
uses: darbiadev/.github/.github/workflows/container-build-push.yaml@91dda16028f109ac78016dd740206fd109740068 # v15.0.0
2321

2422
deploy:
2523
needs: build-push

.github/workflows/dependency-review.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ jobs:
1515
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1616

1717
- name: "Dependency Review"
18-
uses: actions/dependency-review-action@3b139cfc5fae8b618d3eae3675e383bb1769c019 # v4.5.0
18+
uses: actions/dependency-review-action@ce3cf9537a52e8119d91fd484ab5b8a807627bf8 # v4.6.0
1919
with:
2020
config-file: darbiadev/.github/.github/dependency-review-config.yaml@main

.github/workflows/python-ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1616

1717
- name: Setup Python
18-
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
18+
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.5.0
1919
with:
2020
python-version: 3.12
2121
allow-prereleases: true
@@ -44,7 +44,7 @@ jobs:
4444
run: uv run python -m coverage run -m pytest -v
4545

4646
- name: Upload coverage reports to Codecov
47-
uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7
47+
uses: codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5.4.0
4848
env:
4949
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
5050

@@ -55,4 +55,4 @@ jobs:
5555
pages: write
5656
id-token: write
5757

58-
uses: darbiadev/.github/.github/workflows/github-pages-python-sphinx.yaml@41518576ed6c499ed3e68d5cbceaeaa50abd471a # v14.1.0
58+
uses: darbiadev/.github/.github/workflows/github-pages-python-sphinx.yaml@91dda16028f109ac78016dd740206fd109740068 # v15.0.0

.github/workflows/sentry-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1515

1616
- name: "Create Sentry release"
17-
uses: getsentry/action-release@e769183448303de84c5a06aaaddf9da7be26d6c7 # v1.7.0
17+
uses: getsentry/action-release@00ed2a6cc2171514e031a0f5b4b3cdc586dc171a # v3.1.1
1818
env:
1919
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
2020
SENTRY_ORG: ${{ vars.SENTRY_ORG }}

.pre-commit-config.yaml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
repos:
2+
- repo: meta
3+
hooks:
4+
- id: check-hooks-apply
5+
- id: check-useless-excludes
6+
27
- repo: https://github.com/pre-commit/pre-commit-hooks
38
rev: v5.0.0
49
hooks:
@@ -15,20 +20,6 @@ repos:
1520
exclude: .devcontainer/devcontainer-lock.json
1621

1722
- repo: https://github.com/astral-sh/uv-pre-commit
18-
rev: 0.5.4
23+
rev: 0.6.13
1924
hooks:
2025
- id: uv-lock
21-
- id: uv-export
22-
args:
23-
- --frozen
24-
- --no-emit-project
25-
- --output-file=requirements.txt
26-
files: pyproject.toml|uv.lock
27-
- id: uv-export
28-
args:
29-
- --frozen
30-
- --no-emit-project
31-
- --all-extras
32-
- --all-groups
33-
- --output-file=requirements-dependabot.txt
34-
files: pyproject.toml|uv.lock

Containerfile

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
FROM python:3.13-slim@sha256:f3614d98f38b0525d670f287b0474385952e28eb43016655dd003d0e28cf8652
2+
3+
COPY --from=ghcr.io/astral-sh/uv:0.6.13@sha256:0b6dc79013b689f3bc0cbf12807cb1c901beaafe80f2ee10a1d76aa3842afb92 /uv /bin/
4+
5+
# Define Git SHA build argument for Sentry
6+
ARG git_sha="development"
7+
ENV GIT_SHA=$git_sha
8+
9+
RUN adduser --disabled-password api
10+
USER api
11+
12+
WORKDIR /app
13+
14+
COPY uv.lock pyproject.toml /app/
15+
RUN uv sync --frozen --no-editable --no-default-groups --no-install-project
16+
17+
COPY src/ src/
18+
RUN uv sync --frozen --no-editable --no-default-groups
19+
20+
# HTTP
21+
EXPOSE 8080
22+
23+
ENTRYPOINT ["uv", "run", "--no-sync", "gunicorn", "--bind", "0.0.0.0:8080", "--workers", "4", "--worker-class", "uvicorn.workers.UvicornWorker", "api.server:app"]

Dockerfile

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)