Skip to content

feat: add ci tests - #21

Merged
37ng merged 5 commits into
mainfrom
claude/cli-entry-broker-utilities-d0e2d9
Sep 8, 2026
Merged

37ng merged 5 commits into
mainfrom
claude/cli-entry-broker-utilities-d0e2d9

Conversation

@37ng

@37ng 37ng commented Sep 8, 2026

Copy link
Copy Markdown
Owner

No description provided.

37ng and others added 5 commits September 7, 2026 19:23
main.py was the uv init stub. It now lists every script with a main()
and runs one by name: the script's directory goes on sys.path, sys.argv
is rewritten so help reads "main.py <command>", the file is loaded as a
module, and its main() runs. Flags are not repeated here; everything
after the command name goes to that script's own parser, and its exit
code is passed through.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
fetch_ms.py is now a library: no main(), and it writes month files into
broker/data itself. The dispatcher gained a second kind of command, one
the CLI parses on its own, and fetch-ms is the first: no flag fetches the
missing months, --month fetches one, --from/--to fetch a range.

export-ms is dropped; broker/export_ms.py no longer exists.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Every script in chain/ loses its argparse, its main(), and its __main__
block, the way fetch_ms.py already did. What each main() did is now a
function that takes arguments:

  run_pipeline.run(month=, only=, from_step=, dry=, yes=, skip_checks=)
  export_onchain_monthly_fee.export(out_path)
  validate_against_mempool.validate(sample, sleep, sensitivity)

select_steps takes only/from_step instead of an argparse namespace.
sanity_check, export_results and effective_fee already had the functions
the CLI needs, so they only lost code.

main.py parses the flags for all six and keeps the old names, defaults
and choices. Three lines that told a reader to run a script directly now
name the command instead.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@37ng
37ng merged commit c2dc892 into main Sep 8, 2026
1 check passed
@37ng
37ng deleted the claude/cli-entry-broker-utilities-d0e2d9 branch September 8, 2026 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant