Merged
Conversation
Add strip_ansi helper to conftest.py and use it in init_cli_test.py and translate_cli_test.py to handle colored output in CI environments. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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.
Motivation
scribae.yamlso users can set sensible defaults for Scribae commands.Description
scribae initCLI command implemented insrc/scribae/init_cli.pythat runs a terminal questionnaire and renders ascribae.yamlfile.--project <folder>(creates folder if needed) and--file <filename>output targets and validate the two options are mutually exclusive.--forceoption to skip confirmation, and produce friendly colored prompts and examples for each field.yaml.safe_dumpwhile preserving order.inittosrc/scribae/main.pyand add unit tests intests/unit/init_cli_test.pycovering default file, project directory, custom file, overwrite prompt,--force, and option validation.Testing
uv run ruff checkand all checks passed.uv run mypywhich surfaced environment-related import issues for optional ML dependency (torch) unrelated to the newinitcommand; these are external to the change.uv run pytestand all unit tests passed (166 passed).Codex Task