Skip to content

Bump optimagic, boilerplate - #96

Merged
hmgaudecker merged 4 commits into
mainfrom
bump-optimagic
Jul 29, 2026
Merged

Bump optimagic, boilerplate#96
hmgaudecker merged 4 commits into
mainfrom
bump-optimagic

Conversation

@hmgaudecker

Copy link
Copy Markdown
Member

Summary

  • Bump optimagic to a released version (>=0.5.4, dropping the git-branch pin) and bump ruff/ty pre-commit revs; fix the resulting ty/ruff-check fallout (optimagic.minimize's fun_and_jac signature, a stale ty: ignore, a widened scan loop-arg type, Series-vs-floating arithmetic, implicit string concatenation, and newly-enabled CPY001/PLR0917 rules — both added to extend-ignore since no per-file copyright convention exists and PLR0913 was already ignored for the same reason).
  • Apply the tier-a .ai-instructions boilerplate update: bump the submodule, add pandas.md/plotting.md modules, migrate project instructions into AGENTS.md (with CLAUDE.md/GEMINI.md as thin wrappers), add the missing check-github-workflows hook, stop nbstripout from removing notebook kernelspec (needed for Jupyter Book 2/mystmd), add a mdformat-myst hook for docs/, and bump pixi-version/actions/setup-python in CI to current releases.

Test plan

  • prek run --all-files passes cleanly
  • pixi run -e tests-cpu tests: 794 passed, 3 deselected
  • pixi run -e tests-cpu pytest tests/test_identification.py: 18 passed

🤖 Generated with Claude Code

Boilerplate: bumps .ai-instructions to latest main and adds
pandas.md/plotting.md to the included modules; migrates project
instructions to AGENTS.md with CLAUDE.md/GEMINI.md as thin wrappers;
adds the missing check-github-workflows hook; stops nbstripout from
removing notebook kernelspec (needed since this project uses Jupyter
Book 2/mystmd); adds a mystmd-flavoured mdformat hook for docs/; and
bumps pixi-version/actions/setup-python in CI to current releases.

Fallout from the optimagic/ruff/ty version bumps already on this
branch: optimagic's fun_and_jac signature changed (test_cf_recovery.py);
newer ty flags a stale ignore comment (_beartype_conf.py), a widened
scan loop_args type (likelihood_debug.py), and Series-vs-floating
arithmetic (test_correlation_heatmap.py); newer ruff flags implicit
string concatenation (identification.py) and enables CPY001/PLR0917,
both ignored in pyproject.toml (no per-file copyright convention
exists; PLR0913 -- too many arguments -- was already ignored, so
PLR0917 -- too many positional arguments -- joins it for consistency).
@codecov

codecov Bot commented Jul 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.83%. Comparing base (ee48922) to head (9dd8b54).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #96   +/-   ##
=======================================
  Coverage   95.82%   95.83%           
=======================================
  Files         142      142           
  Lines       14122    14126    +4     
=======================================
+ Hits        13533    13537    +4     
  Misses        589      589           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@hmgaudecker
hmgaudecker merged commit c6e47c5 into main Jul 29, 2026
8 checks passed
@hmgaudecker
hmgaudecker deleted the bump-optimagic branch July 29, 2026 11:25
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