技能 2026-10-10 04:31 UTC
hve-core
由提交人 MohammedAlkindi 提交,主要更新类型为:问题缺陷修复与稳定性提升。提交说明:fix(tts-voiceover): escape percent in argparse help default (#2991)。解决了已知运行时异常与边界错误,提升系统稳定性。
Commit提交信息原文
fix(tts-voiceover): escape percent in argparse help default (#2991) **Description** `DEFAULT_RATE` is `+10%`, so `--rate` help rendered a bare `%)` and argparse raised `unsupported format character ')'`: `format_help()` fails on 3.11 to 3.13, and 3.14 fails at `add_argument`. It now uses `%(default)s`. #3000 reintroduced the bug on main, hence the conflict. **Related Issue(s)** None. **Type of Change** * [x] Bug fix (non-breaking change fixing an issue) **Testing** 41 passed on 3.11, 3.12, 3.13 and 3.14. The new `TestCreateParser` case renders help and fails on the old string. **Required Checks** * [ ] Documentation is updated (if applicable) * [x] Files follow existing naming conventions * [x] Changes are backwards compatible (if applicable) * [x] Tests added for new functionality (if applicable) **Required Local Checks** * [ ] Local validation aggregate: `npm run validate:local` * [ ] Documentation validation (if docs changed): `npm run validate:docs` * [x] Spell checking: `npm run spell-check` * [ ] Link validation: `npm run lint:md-links` **Security Considerations** * [x] This PR does not contain any sensitive or NDA information * [x] Any new dependencies have been reviewed for security issues * [x] Security-related scripts follow the principle of least privilege **Additional Notes** Ruff is clean. `validate:local` and `lint:md-links` need `pwsh`, which this machine lacks. --------- Co-authored-by: Chris Montazer <17170709+rezatnoMsirhC@users.noreply.github.com> Co-authored-by: Jamie Kim <jamiekim500@gmail.com> Co-authored-by: Bill Berry <wberry@microsoft.com> Co-authored-by: Bill Berry <WilliamBerryiii@users.noreply.github.com>