Repository navigation
Clearer build messages, and shell completions - #16
Merged
Merged
Conversation
- The repeats warning says the count is of drawn questions, shows the cap and what it's a share of, and names a memory: value that lowers the repeats. - Expected repeats are rounded to one decimal, without a trailing .0. - Key reports show a question without a letter as "–", not "written". - A draw that replaces questions says which: "Replaced <a> with <b>". Closes #5 Closes #6 Closes #7 Closes #8
A hidden command, for bash, zsh and fish, so it stays out of instructors' way in --help. Closes #13
Deploying sortes with
|
| Latest commit: |
061af47
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://14feebfc.sortes-5eu.pages.dev |
| Branch Preview URL: | https://enhancements.sortes-5eu.pages.dev |
[Low impact] The PR reaches users of the command-line exam builder and shell setup. The PR appears safe to merge, with a non-blocking issue in how repeat warnings display the allowed count. Findings
SummaryThis PR makes build reports clearer and adds shell completion scripts.
One non-blocking issue remains: rounding the allowed count can make a repeat warning contradict itself. Reviews (1) · Last reviewed commit: "feat: sortes completions prints shell co..." · Reviewed by Greptile |
Show as many decimals as it takes (up to three) for the expected repeats and the cap to differ, e.g. "0.43 ... more than the 0.4", and say "question" for one. Found by Greptile on #16.
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.
The enhancement issues from the 0.1.0 dogfooding, in one PR.
Build messages:
memory:value that lowers the repeats: "About 4 drawn questions are expected to repeat from the last 2 terms, more than the 0.5 that 10% of 5 questions allows. Write more questions, or set memory: 1 to count fewer past terms." Closes Repeats warning suggests memory: even when it can't help #5, closes Repeats count reads as if picked questions count #6.Shell completions:
sortes completions <shell>prints the completion script for bash, zsh or fish. It's hidden fromsortes --help, since instructors don't need it, and documented in the reference. Closes Shell completions #13.Not included: #10 (Homebrew) is being done in the tap's own repository, and #11 (Typst Universe) waits for typst/packages to merge the submission.
make checkpasses (52 unit, 26 end-to-end tests). I also read each new message in a real run, which caught "About 1 drawn questions are"; it now reads "About 1 drawn question is".