inpoxia-tools
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseInpoxia Tooling Workflow
Inpoxia 工具工作流
Run Inpoxia repo tasks with consistent commands and validation gates.
使用一致的命令和验证环节运行Inpoxia仓库任务。
Quick Start
快速开始
- Detect task type: CLI behavior, GraphMail library behavior, configuration/auth flow, or packaging/release.
- Run the narrowest command that validates the change first (single test module or targeted command).
- Run broader checks before finishing: tests plus static checks relevant to changed files.
- Report exact commands executed and key results.
- 检测任务类型:CLI行为、GraphMail库行为、配置/认证流程,或打包/发布。
- 首先运行最精准的命令来验证变更(单个测试模块或目标命令)。
- 在完成前运行更全面的检查:针对变更文件的测试及相关静态检查。
- 报告执行的具体命令和关键结果。
Use Repo Commands
使用仓库命令
Use -managed tools in this repo.
uv- Run tests:
pytest - Run targeted tests:
pytest tests/inpoxia/test_cli_messages.py -q - Run type checks:
pyright - Run lint checks:
ruff check . - Run formatting:
ruff format . - Run CLI locally:
./.venv/bin/inpoxia --help
Prefer targeted test selection first, then expand scope as confidence increases.
使用本仓库中由管理的工具。
uv- 运行测试:
pytest - 运行目标测试:
pytest tests/inpoxia/test_cli_messages.py -q - 运行类型检查:
pyright - 运行代码检查:
ruff check . - 运行格式化:
ruff format . - 本地运行CLI:
./.venv/bin/inpoxia --help
优先选择目标测试,随着信心提升再扩大范围。
Validate By Change Type
根据变更类型进行验证
CLI command/output changes (src/inpoxia/cli/**
)
src/inpoxia/cli/**CLI命令/输出变更(src/inpoxia/cli/**
)
src/inpoxia/cli/**- Run the relevant CLI test module under .
tests/inpoxia/ - Run related GraphMail tests if the command calls .
inpoxia.graphmail - Run and
ruff check ..pyright
- 运行下对应的CLI测试模块。
tests/inpoxia/ - 如果命令调用了,运行相关的GraphMail测试。
inpoxia.graphmail - 运行和
ruff check .。pyright
GraphMail library changes (src/inpoxia/graphmail/**
)
src/inpoxia/graphmail/**GraphMail库变更(src/inpoxia/graphmail/**
)
src/inpoxia/graphmail/**- Run matching tests under .
tests/inpoxia/graphmail/ - Run full suite when behavior contracts change.
tests/inpoxia/graphmail/ - Run and
pyright.ruff check .
- 运行下的匹配测试。
tests/inpoxia/graphmail/ - 当行为契约变更时,运行完整的测试套件。
tests/inpoxia/graphmail/ - 运行和
pyright。ruff check .
Config/auth/token handling changes
配置/认证/令牌处理变更
- Run ,
tests/inpoxia/test_config*.py, andtests/inpoxia/test_cli_auth.pyas applicable.tests/inpoxia/test_auth_manager.py - Confirm token resolution order and error handling behavior remain consistent.
- 根据情况运行、
tests/inpoxia/test_config*.py和tests/inpoxia/test_cli_auth.py。tests/inpoxia/test_auth_manager.py - 确认令牌解析顺序和错误处理行为保持一致。
Use References
使用参考文档
Read for a compact command map and task-to-test routing.
references/command-recipes.md阅读以获取简洁的命令映射表和任务到测试的路由指南。
references/command-recipes.md