checking-changes

作者: streamlit

在提交前通过运行格式化、代码检查、类型检查和单元测试来验证所有代码变更。在完成后端(Python)或前端(TypeScript)修改后使用。

npx skills add https://github.com/streamlit/streamlit --skill checking-changes

Checking 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, Knip unused-export and unused-dependency analysis, and unit tests on all uncommitted files (staged, unstaged, and untracked).

Workflow

  1. Run make check
  2. If issues are found:
    • Fix the reported errors
    • Re-run make check
    • Repeat until all checks pass
  3. Only consider work complete when make check succeeds

Notes

  • E2E tests are not included by default; use E2E_CHECK=true make check to also run changed e2e tests
  • E2E snapshot mismatches can be ignored (they require manual updates)

来自 streamlit 的更多技能