Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

Commit f365706

Browse files
committed
Add py.typed marker and docker container --name flag
1 parent a6561ad commit f365706

7 files changed

Lines changed: 385 additions & 265 deletions

File tree

.github/workflows/docs.yaml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ on:
1515
workflow_run:
1616
workflows: [Python Tests]
1717
types:
18-
- completed
18+
- completed
1919
branches:
20-
- main
20+
- main
2121
workflow_dispatch:
2222

2323
jobs:
@@ -28,34 +28,34 @@ jobs:
2828
name: github-pages
2929
url: ${{ steps.deployment.outputs.page_url }}
3030
steps:
31-
- uses: actions/checkout@v5
32-
- name: Install uv
33-
uses: astral-sh/setup-uv@v7
34-
with:
35-
enable-cache: true
36-
- name: Set up Python
37-
uses: actions/setup-python@v6
38-
with:
39-
python-version-file: pyproject.toml
40-
- name: Install the project
41-
run: uv sync --only-group docs
42-
- name: Build docs
43-
run: |
44-
APP_MODULE_NAME=$(ls src -U | head -1) # Get the first module name in the src directory
45-
uv run pdoc src/"$APP_MODULE_NAME" -o docs_build -t docs/pdoc-theme --docformat google
46-
- name: Setup Pages
47-
uses: actions/configure-pages@v5
48-
- name: Upload artifact
49-
uses: actions/upload-pages-artifact@v4
50-
with:
51-
path: ./docs_build
52-
- name: Deploy to GitHub Pages
53-
id: deployment
54-
uses: actions/deploy-pages@v4
55-
- name: Deploy to Cloudflare Pages
56-
id: cloudflare-deployment
57-
uses: cloudflare/wrangler-action@v3
58-
with:
59-
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
60-
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
61-
command: pages deploy docs_build/ --project-name=styxdocker --branch=main
31+
- uses: actions/checkout@v6
32+
- name: Install uv
33+
uses: astral-sh/setup-uv@v7
34+
with:
35+
enable-cache: true
36+
- name: Set up Python
37+
uses: actions/setup-python@v6
38+
with:
39+
python-version-file: pyproject.toml
40+
- name: Install the project
41+
run: uv sync --only-group docs
42+
- name: Build docs
43+
run: |
44+
APP_MODULE_NAME=$(ls src -U | head -1) # Get the first module name in the src directory
45+
uv run pdoc src/"$APP_MODULE_NAME" -o docs_build -t docs/pdoc-theme --docformat google
46+
- name: Setup Pages
47+
uses: actions/configure-pages@v5
48+
- name: Upload artifact
49+
uses: actions/upload-pages-artifact@v4
50+
with:
51+
path: ./docs_build
52+
- name: Deploy to GitHub Pages
53+
id: deployment
54+
uses: actions/deploy-pages@v4
55+
- name: Deploy to Cloudflare Pages
56+
id: cloudflare-deployment
57+
uses: cloudflare/wrangler-action@v3
58+
with:
59+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
60+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
61+
command: pages deploy docs_build/ --project-name=styxdocker --branch=main

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ fail_fast: false
22

33
repos:
44
- repo: https://github.com/astral-sh/ruff-pre-commit
5-
rev: v0.14.5
5+
rev: v0.15.2
66
hooks:
77
- id: ruff
88
- id: ruff-format
99

1010
- repo: https://github.com/pre-commit/mirrors-mypy
11-
rev: v1.18.2
11+
rev: v1.19.1
1212
hooks:
1313
- id: mypy
1414
args: [--ignore-missing-imports]
1515
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
16-
rev: v2.15.0
16+
rev: v2.16.0
1717
hooks:
1818
- id: pretty-format-yaml
1919
args:

docs/pdoc-theme/frame.html.jinja2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
<!-- Cloudflare Web Analytics -->
55
<script defer src='https://static.cloudflareinsights.com/beacon.min.js' data-cf-beacon='{"token": "3cc81275d9484412b3569fdb3580758a"}'></script>
66
<!-- End Cloudflare Web Analytics -->
7-
{% endblock %}
7+
{% endblock %}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "styxdocker"
3-
version = "0.6.2"
3+
version = "0.6.3"
44
description = "Docker integration for Styx compiled wrappers."
55
authors = [
66
{name = "Florian Rupprecht", email = "33600480+nx10@users.noreply.github.com"}

src/styxdocker/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,8 @@ def run(
172172
"run",
173173
*self.docker_extra_args,
174174
"--rm",
175+
"--name",
176+
f"styx_{self.output_dir.name}",
175177
*(
176178
["-u", str(self.docker_user_id)]
177179
if self.docker_user_id is not None

src/styxdocker/py.typed

Whitespace-only changes.

0 commit comments

Comments
 (0)