Repository navigation
Add list endpoints, hold expiry, webhook publisher; relicense to AGPL-3.0 - #11
Merged
Merged
Conversation
Bumps python from 3.14-slim to 3.15-slim. --- updated-dependencies: - dependency-name: python dependency-version: 3.15-slim dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]>
…pdates Bumps the python-minor group with 13 updates in the / directory: | Package | From | To | | --- | --- | --- | | [django](https://github.com/django/django) | `6.1.2` | `6.1.3` | | [django-ninja](https://github.com/vitalik/django-ninja) | `1.7.1` | `1.8.0` | | [pytest](https://github.com/pytest-dev/pytest) | `9.1.1` | `9.2.0` | | [hypothesis](https://github.com/HypothesisWorks/hypothesis) | `6.169.4` | `6.170.15` | | [ruff](https://github.com/astral-sh/ruff) | `0.17.0` | `0.17.4` | | [mypy](https://github.com/python/mypy) | `2.4.0` | `2.4.1` | | [asgiref](https://github.com/django/asgiref) | `3.12.1` | `3.13.0` | | [psycopg](https://github.com/psycopg/psycopg) | `3.3.6` | `3.3.8` | | [psycopg-binary](https://github.com/psycopg/psycopg) | `3.3.6` | `3.3.8` | | [pydantic](https://github.com/pydantic/pydantic) | `2.14.1` | `2.14.3` | | [sqlparse](https://github.com/andialbrecht/sqlparse) | `0.6.0` | `0.6.1` | | [typing-inspection](https://github.com/pydantic/typing-inspection) | `0.4.4` | `0.4.5` | | [tzdata](https://github.com/python/tzdata) | `2026.5` | `2026.6` | Updates `django` from 6.1.2 to 6.1.3 - [Commits](django/django@6.1.2...6.1.3) Updates `django-ninja` from 1.7.1 to 1.8.0 - [Release notes](https://github.com/vitalik/django-ninja/releases) - [Commits](vitalik/django-ninja@v1.7.1...v1.8.0) Updates `pytest` from 9.1.1 to 9.2.0 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](pytest-dev/pytest@9.1.1...9.2.0) Updates `hypothesis` from 6.169.4 to 6.170.15 - [Release notes](https://github.com/HypothesisWorks/hypothesis/releases) - [Commits](HypothesisWorks/hypothesis@v6.169.4...v6.170.15) Updates `ruff` from 0.17.0 to 0.17.4 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@0.17.0...0.17.4) Updates `mypy` from 2.4.0 to 2.4.1 - [Changelog](https://github.com/python/mypy/blob/master/CHANGELOG.md) - [Commits](python/mypy@v2.4.0...v2.4.1) Updates `asgiref` from 3.12.1 to 3.13.0 - [Changelog](https://github.com/django/asgiref/blob/main/CHANGELOG.txt) - [Commits](django/asgiref@3.12.1...3.13.0) Updates `psycopg` from 3.3.6 to 3.3.8 - [Changelog](https://github.com/psycopg/psycopg/blob/master/docs/news.rst) - [Commits](psycopg/psycopg@3.3.6...3.3.8) Updates `psycopg-binary` from 3.3.6 to 3.3.8 - [Changelog](https://github.com/psycopg/psycopg/blob/master/docs/news.rst) - [Commits](psycopg/psycopg@3.3.6...3.3.8) Updates `pydantic` from 2.14.1 to 2.14.3 - [Release notes](https://github.com/pydantic/pydantic/releases) - [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md) - [Commits](pydantic/pydantic@v2.14.1...v2.14.3) Updates `sqlparse` from 0.6.0 to 0.6.1 - [Changelog](https://github.com/andialbrecht/sqlparse/blob/master/CHANGELOG) - [Commits](andialbrecht/sqlparse@0.6.0...0.6.1) Updates `typing-inspection` from 0.4.4 to 0.4.5 - [Release notes](https://github.com/pydantic/typing-inspection/releases) - [Changelog](https://github.com/pydantic/typing-inspection/blob/main/HISTORY.md) - [Commits](pydantic/typing-inspection@v0.4.4...v0.4.5) Updates `tzdata` from 2026.5 to 2026.6 - [Release notes](https://github.com/python/tzdata/releases) - [Changelog](https://github.com/python/tzdata/blob/master/NEWS.md) - [Commits](python/tzdata@2026.5...2026.6) --- updated-dependencies: - dependency-name: django dependency-version: 6.1.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-minor - dependency-name: django-ninja dependency-version: 1.8.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-minor - dependency-name: pytest dependency-version: 9.2.0 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: python-minor - dependency-name: hypothesis dependency-version: 6.170.15 dependency-type: direct:development update-type: version-update:semver-minor dependency-group: python-minor - dependency-name: ruff dependency-version: 0.17.4 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: python-minor - dependency-name: mypy dependency-version: 2.4.1 dependency-type: direct:development update-type: version-update:semver-patch dependency-group: python-minor - dependency-name: asgiref dependency-version: 3.13.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-minor - dependency-name: psycopg dependency-version: 3.3.8 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-minor - dependency-name: psycopg-binary dependency-version: 3.3.8 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-minor - dependency-name: pydantic dependency-version: 2.14.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-minor - dependency-name: sqlparse dependency-version: 0.6.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-minor - dependency-name: typing-inspection dependency-version: 0.4.5 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: python-minor - dependency-name: tzdata dependency-version: '2026.6' dependency-type: direct:production update-type: version-update:semver-minor dependency-group: python-minor ... Signed-off-by: dependabot[bot] <[email protected]>
Replace the MIT text with the GNU AGPL v3, update the pyproject license field and the README license badge and section. Also adds Redis, Docker and last-commit badges to the README header.
LEDGER_OUTBOX_PUBLISHER=webhook POSTs each event as JSON to LEDGER_WEBHOOK_URL with an HMAC-SHA256 signature (X-Ledger-Signature) and the event id (X-Ledger-Event-Id). Non-2xx answers, timeouts and redirects all count as failures, so the event is retried next run; redirects are never followed. A non-http(s) URL or empty secret is refused at worker start.
GET /v1/transactions (filter by account, kind, time) and GET /v1/holds (filter by account, effective status), both newest first with a (created_at, id) keyset cursor, since their ids are UUIDs. expire_holds persists the new `expired` hold status for overdue holds and emits hold.expired once each. It locks only hold rows with SKIP LOCKED, so it cannot deadlock with capture or release. Balances were already correct without it. Releasing an expired hold stays allowed. Migration 0005 only changes choices.
The dependabot branch left them out of step: uv.lock kept asgiref, psycopg, pydantic, sqlparse, typing-inspection and tzdata at old versions, and requirements.txt paired pydantic 2.14.3 with pydantic-core 2.50.1, which pip refuses (2.14.3 needs 2.50.4), so the Docker and CI install would have failed. Lock the runtime packages at dependabot's versions and re-export requirements.txt with `make requirements`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GET /v1/transactions(filter byaccount_id,kind,created_from,created_to) andGET /v1/holds(filter byaccount_id, effectivestatus). Both are newest first with a(created_at, id)keyset cursor, since their ids are UUIDs.manage.py expire_holdspersists a newexpiredhold status for overdue holds and emitshold.expiredonce each. It locks only hold rows withSKIP LOCKED, so it cannot deadlock with capture or release. Releasing an expired hold stays allowed. Migration 0005 only changeschoices(no SQL).LEDGER_OUTBOX_PUBLISHER=webhookPOSTs each outbox event toLEDGER_WEBHOOK_URL, signed with HMAC-SHA256 (X-Ledger-Signature), withX-Ledger-Event-Idfor dedupe. Non-2xx, timeouts and redirects (never followed) leave the event for retry.uv.lockandrequirements.txtdisagreed, and itsrequirements.txtpinnedpydantic-core2.50.1 againstpydantic2.14.3 (needs 2.50.4), so pip could not install it. Locked at dependabot's versions and re-exported withmake requirements. Merging this PR lands build(deps): bump python from 3.14-slim to 3.15-slim #9 and build(deps): bump the python-minor group across 1 directory with 13 updates #10, so they close on their own.AGENTS.mdand the verifier / ledger-reviewer agents.Notes
ponytail:comment).Test plan
ruff check,ruff format --check,mypystrict cleanpytest: 132 passed against local Postgres 16manage.py expire_holdsagainst a staging database, thenmanage.py reconcile