refactor(x402): extract constants/enums to pry_x402 sub-package #12

Closed
cryptorugmunch wants to merge 16 commits from refactor/x402-split into main

Summary

Step 1 of the incremental x402.py split. Extracts constants, enums, pricing, wallet/facilitator env lookups, EIP-7702 RPC endpoints, and asset decimals into a new pry_x402/ sub-package.

Changes

  • Added pry_x402/constants.py and pry_x402/__init__.py
  • x402.py now imports from pry_x402.constants
  • Added tests/test_x402_surface_snapshot.py to guard the public API surface

Verification

  • uv run pytest tests/ -q → 625 passed, 1 skipped
  • uv run ruff check . → clean
  • uv run python -m mypy . → success (no issues found in 232 source files)
## Summary Step 1 of the incremental x402.py split. Extracts constants, enums, pricing, wallet/facilitator env lookups, EIP-7702 RPC endpoints, and asset decimals into a new `pry_x402/` sub-package. ## Changes - Added `pry_x402/constants.py` and `pry_x402/__init__.py` - `x402.py` now imports from `pry_x402.constants` - Added `tests/test_x402_surface_snapshot.py` to guard the public API surface ## Verification - `uv run pytest tests/ -q` → 625 passed, 1 skipped - `uv run ruff check .` → clean - `uv run python -m mypy .` → success (no issues found in 232 source files)
cryptorugmunch added 1 commit 2026-07-03 16:17:01 +02:00
refactor(x402): extract constants and enums to pry_x402 sub-package
Some checks are pending
CI / lint (pull_request) Waiting to run
CI / typecheck (pull_request) Waiting to run
CI / test (pull_request) Waiting to run
CI / Secret scan (gitleaks) (pull_request) Waiting to run
CI / Security audit (bandit) (pull_request) Waiting to run
089a2c77f7
cryptorugmunch added 1 commit 2026-07-03 16:49:23 +02:00
chore(ci): re-trigger Forgejo Actions workflow
Some checks are pending
CI / lint (pull_request) Waiting to run
CI / typecheck (pull_request) Waiting to run
CI / test (pull_request) Waiting to run
CI / Secret scan (gitleaks) (pull_request) Waiting to run
CI / Security audit (bandit) (pull_request) Waiting to run
144acfe15c
cryptorugmunch added 1 commit 2026-07-03 17:21:18 +02:00
ci: re-trigger runner after gRPC proxy fix
Some checks are pending
CI / lint (pull_request) Waiting to run
CI / typecheck (pull_request) Waiting to run
CI / test (pull_request) Waiting to run
CI / Secret scan (gitleaks) (pull_request) Waiting to run
CI / Security audit (bandit) (pull_request) Waiting to run
743d23e400
cryptorugmunch added 1 commit 2026-07-03 17:32:49 +02:00
ci: re-trigger with docker-x64 runner label
Some checks are pending
CI / lint (pull_request) Waiting to run
CI / typecheck (pull_request) Waiting to run
CI / test (pull_request) Waiting to run
CI / Secret scan (gitleaks) (pull_request) Waiting to run
CI / Security audit (bandit) (pull_request) Waiting to run
e677fccb6d
cryptorugmunch added 1 commit 2026-07-03 17:34:12 +02:00
ci: re-trigger after lowering approval requirement
Some checks are pending
CI / lint (pull_request) Waiting to run
CI / typecheck (pull_request) Waiting to run
CI / test (pull_request) Waiting to run
CI / Secret scan (gitleaks) (pull_request) Waiting to run
CI / Security audit (bandit) (pull_request) Waiting to run
88d406d3a7
cryptorugmunch added 1 commit 2026-07-03 17:36:05 +02:00
ci: re-trigger without branch protection
Some checks are pending
CI / lint (pull_request) Waiting to run
CI / typecheck (pull_request) Waiting to run
CI / test (pull_request) Waiting to run
CI / Secret scan (gitleaks) (pull_request) Waiting to run
CI / Security audit (bandit) (pull_request) Waiting to run
652ccaa531
cryptorugmunch added 1 commit 2026-07-03 17:37:28 +02:00
ci: re-trigger after clearing action history
Some checks failed
CI / test (pull_request) Failing after 58s
CI / Secret scan (gitleaks) (pull_request) Successful in 31s
CI / Security audit (bandit) (pull_request) Successful in 35s
CI / lint (pull_request) Failing after 49s
CI / typecheck (pull_request) Successful in 58s
02d1cc6f71
cryptorugmunch added 1 commit 2026-07-03 17:49:38 +02:00
ci: bump workflow cache to force re-parse
Some checks failed
CI / lint (pull_request) Failing after 49s
CI / typecheck (pull_request) Successful in 53s
CI / Secret scan (gitleaks) (pull_request) Successful in 32s
CI / Security audit (bandit) (pull_request) Successful in 34s
CI / test (pull_request) Failing after 15m21s
d8a18dbf78
cryptorugmunch added 1 commit 2026-07-03 17:54:06 +02:00
ci: re-trigger after Forgejo restart
Some checks failed
CI / lint (pull_request) Failing after 47s
CI / typecheck (pull_request) Successful in 53s
CI / test (pull_request) Failing after 58s
CI / Secret scan (gitleaks) (pull_request) Successful in 31s
CI / Security audit (bandit) (pull_request) Successful in 34s
acc1a9139d
cryptorugmunch added 1 commit 2026-07-03 18:00:23 +02:00
ci: debug workflow source
Some checks failed
CI / lint (pull_request) Failing after 49s
CI / typecheck (pull_request) Successful in 52s
CI / test (pull_request) Failing after 54s
CI / Secret scan (gitleaks) (pull_request) Successful in 30s
CI / Security audit (bandit) (pull_request) Successful in 35s
1d4537b935
cryptorugmunch added 1 commit 2026-07-03 18:03:15 +02:00
ci(forgejo): sync ci.yml with github workflow
Some checks failed
CI / lint (pull_request) Has been cancelled
CI / typecheck (pull_request) Has been cancelled
CI / test (pull_request) Has been cancelled
CI / security (pull_request) Has been cancelled
CI / gitleaks (pull_request) Has been cancelled
CI / commitlint (pull_request) Has been cancelled
c729fef977
cryptorugmunch added 1 commit 2026-07-03 18:05:40 +02:00
ci(forgejo): use docker-x64 runner label
Some checks failed
CI / lint (pull_request) Failing after 36s
CI / typecheck (pull_request) Failing after 4s
CI / test (pull_request) Failing after 4s
CI / security (pull_request) Failing after 4s
CI / gitleaks (pull_request) Failing after 9s
CI / commitlint (pull_request) Successful in 19s
550cf11deb
cryptorugmunch added 1 commit 2026-07-03 18:09:09 +02:00
ci(forgejo): use python containers and pip
Some checks failed
CI / lint (pull_request) Failing after 32s
CI / typecheck (pull_request) Failing after 1m37s
CI / test (pull_request) Failing after 2m24s
CI / security (pull_request) Failing after 37s
CI / gitleaks (pull_request) Successful in 35s
CI / commitlint (pull_request) Failing after 13s
68722b2c22
cryptorugmunch added 1 commit 2026-07-03 18:12:39 +02:00
style: ruff format
Some checks failed
CI / lint (pull_request) Successful in 33s
CI / typecheck (pull_request) Failing after 1m42s
CI / test (pull_request) Failing after 2m33s
CI / security (pull_request) Failing after 39s
CI / gitleaks (pull_request) Successful in 36s
CI / commitlint (pull_request) Failing after 10s
2f1eec2f78
cryptorugmunch added 1 commit 2026-07-03 18:25:40 +02:00
ci(forgejo): install git in commitlint container
Some checks failed
CI / lint (pull_request) Successful in 30s
CI / typecheck (pull_request) Failing after 1m33s
CI / commitlint (pull_request) Failing after 45s
CI / test (pull_request) Failing after 2m14s
CI / security (pull_request) Failing after 34s
CI / gitleaks (pull_request) Successful in 32s
79842ae39e
cryptorugmunch added 1 commit 2026-07-03 18:34:04 +02:00
ci(forgejo): add ca-certificates to commitlint container
Some checks failed
CI / lint (pull_request) Successful in 31s
CI / typecheck (pull_request) Failing after 1m37s
CI / test (pull_request) Failing after 2m21s
CI / security (pull_request) Failing after 36s
CI / gitleaks (pull_request) Successful in 34s
CI / commitlint (pull_request) Successful in 20s
7333048d23
cryptorugmunch closed this pull request 2026-07-06 10:07:06 +02:00
Some checks are pending
CI / lint (pull_request) Successful in 31s
CI / typecheck (pull_request) Failing after 1m37s
CI / test (pull_request) Failing after 2m21s
CI / security (pull_request) Failing after 36s
CI / gitleaks (pull_request) Successful in 34s
CI / commitlint (pull_request) Successful in 20s
lint
Required
test
Required
typecheck
Required

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: RugMunchMedia/pryscraper#12
No description provided.