Skip to content

chore: P2+P3 infrastructure (devcontainer, Chinese docs, snapshot tests)#39

Merged
NeuZhou merged 4 commits intomasterfrom
chore/p2-p3-infra
Apr 13, 2026
Merged

chore: P2+P3 infrastructure (devcontainer, Chinese docs, snapshot tests)#39
NeuZhou merged 4 commits intomasterfrom
chore/p2-p3-infra

Conversation

@NeuZhou
Copy link
Copy Markdown
Owner

@NeuZhou NeuZhou commented Apr 13, 2026

P2+P3: Infrastructure Improvements

P2 Changes

  1. Devcontainer (.devcontainer/devcontainer.json) — Closes Create .devcontainer/devcontainer.json #30

    • Python 3.12 base image, dev dependencies auto-installed, pre-commit hooks, VS Code extensions
  2. Chinese CONTRIBUTING (CONTRIBUTING.zh-CN.md) — Closes Translate CONTRIBUTING.md to Chinese #32

    • Full natural Chinese translation with cross-links in both versions

P3 Changes

  1. Type hints (Add type hints to stratevo/utils/ public functions #29) — Verified: stratevo/utils/ already has full type hints. No changes needed.

  2. CLI docstrings (Add docstrings to CLI command modules #27) — Verified: all 13 CLI command modules already have docstrings. No changes needed.

  3. CLI help snapshot tests (tests/test_cli_help_snapshot.py) — Closes Add snapshot tests for CLI --help output #31

    • 13 parametrized tests covering all CLI commands
    • Snapshots stored in tests/snapshots/
    • --update-snapshots flag for regeneration

NeuZhou and others added 2 commits April 13, 2026 07:22
…CLI docstrings, help snapshots)

- Add .devcontainer/devcontainer.json with Python 3.12, dev deps, pre-commit, VS Code extensions (#30)
- Add CONTRIBUTING.zh-CN.md Chinese translation with cross-links (#32)
- Verify type hints in stratevo/utils/ (already complete) (#29)
- Verify docstrings in stratevo/cli/commands/ (already complete) (#27)
- Add CLI --help snapshot tests with --update-snapshots support (#31)

Closes #27, #29, #30, #31, #32

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@NeuZhou NeuZhou merged commit cf962a6 into master Apr 13, 2026
4 checks passed
@NeuZhou NeuZhou deleted the chore/p2-p3-infra branch April 13, 2026 08:44
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.

Translate CONTRIBUTING.md to Chinese Add snapshot tests for CLI --help output Create .devcontainer/devcontainer.json

1 participant