Skip to content
Draft
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
4 changes: 4 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Vendored snapshot of the published API specification. Marked as generated so it collapses by default in diffs
# (the generated models are what reviewers read - the snapshot is there for provenance and reproducibility, and
# stays one click away) and so it doesn't skew the repository language statistics.
spec/openapi.json linguist-generated=true
26 changes: 26 additions & 0 deletions .github/workflows/_checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,32 @@ jobs:
- name: Async docstrings check
run: uv run poe check-docstrings

# Regenerates the models from the committed `spec/openapi.json` and fails when the result differs from what is
# committed. Keeps the generated files a pure function of the snapshot plus the pinned codegen tooling, so a
# codegen or formatter upgrade can't silently drift them, and nobody can hand-edit them.
models_check:
name: Models check
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v7

- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Set up uv package manager
uses: astral-sh/setup-uv@v8.3.2
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Install dependencies
run: uv run poe install-dev

- name: Generated models check
run: uv run poe check-models

markdown_lint_check:
name: Markdown lint check
runs-on: ubuntu-latest
Expand Down
257 changes: 0 additions & 257 deletions .github/workflows/manual_regenerate_models.yaml

This file was deleted.

Loading
Loading