Skip to content

Update boilerplate to ai-instructions a26c1bd - #105

Merged
MImmesberger merged 8 commits into
mainfrom
boilerplate-update
Sep 25, 2026
Merged

MImmesberger merged 8 commits into
mainfrom
boilerplate-update

Conversation

@MImmesberger

@MImmesberger MImmesberger commented Sep 22, 2026 •

Copy link
Copy Markdown
Member

Updates the project configuration to ai-instructions c979be8.

pre-commit

  • Submodule .ai-instructions bumped to c979be8.
  • Bumps: pyproject-fmt v2.29.3, check-jsonschema 0.38.0, ruff v0.16.8, codespell v2.4.3.
  • ty hook runs ty check directly with ty==0.0.83.
  • Template local hooks: pre-push-hooks-installed, pixi-lock-check (pre-push), no-hardcoded-user-paths, no-section-separator-comments, no-internal-references; the pixi/submodule hooks are skipped on pre-commit.ci. Run prek install -t pre-push once per clone.
  • Second mdformat hook (mdformat-myst) for docs/, which reformatted the docs files.
  • codespell configured via [tool.codespell], keeping the existing wordlist file.

Code

  • Rewrote the 22 comments referencing issues, PRs or review labels to state the reason instead.
  • Changes required by the new ruff/ty versions: CPY001 and PLR0917 in extend-ignore (as in the template), 6 ISC004 concatenations parenthesized, 21 pd.Series[...] annotations reduced to bare pd.Series (matching the rest of the repo), one sum() in probe.py rewritten so it type-checks.
  • test_sandbox_tasks_produce_identical_results deleted the tracked sandbox/pyproject.toml on every run; it now only writes and removes the config when it is absent.

Other

  • .gitignore: removed a duplicated block, added pytask.lock.journal.
  • CI: actions/checkout v7.0.1, setup-pixi v0.10.2, codecov v7.1.1, pixi v0.81.0.

Follow-ups (ai-instructions a26c1bd)

  • pyproject-fmt v2.29.4. Removed the CLAUDE.md / GEMINI.md wrappers, since AGENTS.md is the only instruction file.
  • CI test job: setup-pixi installs only py314, and the tests run --locked.
  • .gitignore: bld/ moved into the sorted pytask section.
  • The wealth-imputation fit classmethods return Self. A checker targeting Python below 3.14 (the dev-gettsim workspace root) reports the class-name annotations as undefined.
  • The fold-balance test uses the built-in max/min on the bincount result, which avoids a numpy 2.5.3 stub overload mismatch on ndarray.max/min.

Verification

  • prek run --all-files passes; pixi-lock-check passes.
  • pixi run -e py314 tests -n 7: 1647 passed, 1 skipped.

🤖 Generated with Claude Code

MImmesberger and others added 2 commits September 22, 2026 10:25
- Bump the `.ai-instructions` submodule to c979be8.
- pre-commit: bump pyproject-fmt, check-jsonschema, ruff, ty and codespell;
  run ty via `entry: ty check` with a pinned `ty==0.0.83`; add the template's
  local hooks (pre-push-hooks-installed, pixi-lock-check,
  no-hardcoded-user-paths, no-section-separator-comments,
  no-internal-references) and skip the pixi/submodule hooks on pre-commit.ci;
  add a MyST mdformat hook for docs/; configure codespell via
  `[tool.codespell]`.
- Ignore CPY001 and PLR0917, as the template does; ruff 0.16.8 enforces both.
- Rewrite comments and docstrings that referred to issue, PR and review
  labels so they state the reason instead.
- Fix ISC004 and the ty 0.0.83 findings: drop `pd.Series[...]` subscripts
  (pandas' `Series` is not generic) and count present rows directly.
- CI: actions/checkout v7.0.1, setup-pixi v0.10.2, codecov v7.1.1,
  pixi v0.81.0.
- .gitignore: drop the duplicated review-artifact block, add
  `pytask.lock.journal`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
`test_sandbox_tasks_produce_identical_results` wrote `sandbox/pyproject.toml`
and deleted it afterwards, which removed the tracked file from the working
tree on every test run. Only write and remove the config when it is absent.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@read-the-docs-community

read-the-docs-community Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Documentation build overview

📚 soep-preparation | 🛠️ Build #34695847 | 📁 Comparing e2f10e2 against latest (8f06cc2)

  🔍 Preview build  

1 file changed
± using-with-gettsim/index.html

@codecov

codecov Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 63.63636% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
tests/merge_data/test_sandbox_tasks.py 0.00% 4 Missing ⚠️

📢 Thoughts on this report? Let us know!

MImmesberger and others added 5 commits September 22, 2026 11:37
Remove `pixi-lock-check` and `pre-push-hooks-installed`, which only guards
pre-push hooks, so contributors need no `prek install -t pre-push`.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Also install only the py314 env in the test job, run it --locked, and sort the
pytask gitignore section.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Avoids forward references to the class name, which a checker targeting Python
below 3.14 reports as undefined, and sidesteps a numpy 2.5.3 stub overload
mismatch on ndarray.max/min in the fold-balance test.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@MImmesberger MImmesberger changed the title Update boilerplate to ai-instructions c979be8 Update boilerplate to ai-instructions a26c1bd Sep 22, 2026
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@MImmesberger
MImmesberger merged commit d2e7d44 into main Sep 25, 2026
6 of 7 checks passed
@MImmesberger
MImmesberger deleted the boilerplate-update branch September 25, 2026 14:32
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