Skip to content

core: add project-wide default inputs - #313

Merged
tingerrr merged 2 commits into
typst-community:mainfrom
T1mVo:project-wide-inputs
Aug 26, 2026
Merged

core: add project-wide default inputs#313
tingerrr merged 2 commits into
typst-community:mainfrom
T1mVo:project-wide-inputs

Conversation

@T1mVo

@T1mVo T1mVo commented Aug 21, 2026

Copy link
Copy Markdown
Contributor

Summary

See commit messages.

Related Issues

Closes #312

Checklist

  • I have structured my commits according to the commit guidelines (if applicable).
  • I have added tests for new features (if applicable).
  • I have updated the documentation (if applicable).

@tingerrr tingerrr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, I've left a few comments, but nothing major.

Comment thread crates/tytanic-core/src/config.rs Outdated
Comment thread crates/tytanic-core/src/config.rs Outdated
Comment thread docs/book/src/reference/tests/annotations.md
@T1mVo
T1mVo force-pushed the project-wide-inputs branch 2 times, most recently from a6de0c9 to 6593a8f Compare August 25, 2026 20:14
Allow configuring default `sys.inputs` key-value pairs in
`[tool.tytanic.default]` via a new `inputs` table. These defaults are
exposed to every unit test, and values from a test's `input` annotation
override any project default with the same key.
@T1mVo
T1mVo force-pushed the project-wide-inputs branch from 6593a8f to 081230f Compare August 25, 2026 20:19

@tingerrr tingerrr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Once the test files are persisted this can be merged.

Comment thread docs/book/src/reference/tests/annotations.md
@T1mVo
T1mVo force-pushed the project-wide-inputs branch 2 times, most recently from 180f0e7 to 7ca09d5 Compare August 26, 2026 15:27
@T1mVo
T1mVo force-pushed the project-wide-inputs branch from 7ca09d5 to ae58a6e Compare August 26, 2026 15:29

@tingerrr tingerrr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGMT, thanks!

@tingerrr
tingerrr merged commit 0306bda into typst-community:main Aug 26, 2026
@tingerrr

Copy link
Copy Markdown
Member

I don't know why I trust GitHub to work at this point, some updates to the other migration tests were missing and because the CI wasn't even run it broke the tests on main.

Note that this is neither problematic in terms of actual functionality, nor your fault, but Io felt like saying it.

tingerrr added a commit that referenced this pull request Aug 26, 2026
@T1mVo
T1mVo deleted the project-wide-inputs branch August 26, 2026 21:54
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.

Add default.input to project config

2 participants