Skip to content

audit: annotate intro mle's yfinance read - #151

Merged
mmcky merged 1 commit into
mainfrom
audit/annotate-intro-mle-yfinance
Sep 30, 2026
Merged

mmcky merged 1 commit into
mainfrom
audit/annotate-intro-mle-yfinance

Conversation

@mmcky

@mmcky mmcky commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Annotates intro's new yfinance read, so that the strict audit passes on main again.

QuantEcon/lecture-python-intro#849 merged at 2026-09-29 21:17 UTC. It rewrote mle.md to download monthly AMZN prices with yfinance (line 880), for a maximum-likelihood refit of the Student's t that fitting_distributions fits by moments. That read has no entry in scripts/audit_annotations.yml, so build_audit.py all --strict fails with missing_api_annotations: lecture-python-intro:mle:yfinance. No audit-dashboard run has happened since that merge, so nothing shows red yet. But the next push to main goes red and skips the Pages deploy, and the scheduled run on Monday 2026-10-05 at 05:17 UTC would also open an audit-drift issue.

The entry follows lecture-python-intro:fitting_distributions:yfinance, which reads the same series the same way: series: AMZN, pedagogy: incidental. pedagogy is a judgment; @mmcky confirmed incidental on 2026-09-30.

Checked on 2026-09-30 with python scripts/build_audit.py all --strict over the eight lecture repos at main: exit 1 on main alone with that single warning, and exit 0 with this entry.

Merge this first. Every other PR to main needs it for a green audit-dashboard check, including the licence records (#152) and block C (#153). It turned up while dry-running block C of #118.

🤖 Generated with Claude Code

QuantEcon/lecture-python-intro#849 (merged 2026-09-29 21:17 UTC)
rewrote mle.md to download monthly AMZN prices with yfinance and refit
by maximum likelihood the Student's t that fitting_distributions fits
by moments. The read has no annotation, so the strict audit fails on
main with `missing_api_annotations: lecture-python-intro:mle:yfinance`,
and the next push to main or the Monday 05:17 UTC run goes red, opens
an audit-drift issue and skips the Pages deploy.

The entry follows fitting_distributions', which reads the same series
the same way: pedagogy incidental. Checked 2026-09-30 with
build_audit.py all --strict over the eight lecture repos at main: exit
1 on main alone, exit 0 with this entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

The change is correct, but the pedagogy: incidental value is an explicit judgment call the author asked a reviewer to confirm, so it warrants human sign-off rather than automated approval.

Review effort: Balanced
Findings: None

What changed in this PR

This PR adds a single curated judgment entry to scripts/audit_annotations.yml for a newly introduced live-API read. The intro mle lecture was rewritten (lecture-python-intro#849) to download monthly AMZN prices via yfinance, which the audit scanner detects as a new, unannotated reference; without an entry, build_audit.py all --strict fails with missing_api_annotations: lecture-python-intro:mle:yfinance, which would turn the audit-dashboard check red and skip the Pages deploy. Adding the annotation restores a green strict audit on main.

Changes:

  • Add an api: annotation for lecture-python-intro:mle:yfinance (series: AMZN, pedagogy: incidental, with an explanatory note), mirroring the existing fitting_distributions:yfinance entry.
File Description
scripts/​audit_annotations.yml Adds the curated mle:yfinance API annotation so the strict audit recognizes intro's new AMZN read and passes on main.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@mmcky
mmcky merged commit 2637047 into main Sep 30, 2026
7 checks passed
@mmcky
mmcky deleted the audit/annotate-intro-mle-yfinance branch September 30, 2026 05:03
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.

2 participants