checking-changes
作者: streamlit
在提交前通过运行格式化、代码检查、类型检查和单元测试来验证所有代码变更。在完成后端(Python)或前端(TypeScript)修改后使用。
npx skills add https://github.com/streamlit/streamlit --skill checking-changesChecking Changes
Run at the end of a work session or after completing a set of changes — not after every small edit.
make check
This runs formatting, linting, type checking, and unit tests on all uncommitted files (staged, unstaged, and untracked).
Workflow
- Run
make check - If issues are found:
- Fix the reported errors
- Re-run
make check - Repeat until all checks pass
- Only consider work complete when
make checksucceeds
Notes
- E2E tests are not included by default; use
E2E_CHECK=true make checkto also run changed e2e tests - E2E snapshot mismatches can be ignored (they require manual updates)