Repository navigation
feat: add ci tests - #21
Merged
Merged
Conversation
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>
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.
No description provided.