fix(ci): keep install-docs help cp1252-safe - #1815
Conversation
|
| Filename | Overview |
|---|---|
| scripts/validate-install-docs.py | Replaces the non-cp1252 help-text character without changing validator behavior. |
| tests/scripts/test_validate_install_docs.py | Adds a deterministic subprocess regression test for cp1252 help output. |
| CHANGELOG.md | Documents the Windows legacy-console encoding fix. |
Reviews (3): Last reviewed commit: "docs: credit Windows console help fix (#..." | Re-trigger Greptile
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe validator help text replaces an unencodable Unicode arrow with ChangesHelp output compatibility
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to Validator help now uses ASCII-compatible notation and is covered for CP1252 console output, with no remaining merge-blocking risk identified. Suggested reviewers: 🚥 Pre-merge checks | ✅ 8 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (8 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 66.67% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files. (1 skipped: 1 unsupported.)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Keep the install-doc validator's
--helpoutput printable on cp1252 Windows consoles.Closes #1813.
Changes
PYTHONIOENCODING=cp1252Type
Testing
python -m pytest tests/scripts/test_validate_install_docs.py -q(11 passed)python scripts/validate-install-docs.py --helppython scripts/validate-install-docs.pypython scripts/check-docs-drift.pypython -m pytest tests/test_no_committed_analytics_token.py tests/test_gitleaks_allowlist.py -q(6 passed)python -m compileall -q scripts/validate-install-docs.py tests/scripts/test_validate_install_docs.pygit diff --checkChecklist
Replaced the Unicode arrow in
validate-install-docs.pyhelp text with ASCII->and added acp1252subprocess regression test. This preventsUnicodeEncodeErrorwhen Windows consoles print--help. The change does not alter validator behavior.