checking-changes
bởi streamlit
Xác thực tất cả các thay đổi mã nguồn trước khi commit bằng cách chạy các kiểm tra định dạng, lint, kiểu và kiểm thử đơn vị. Sử dụng sau khi thực hiện thay đổi backend (Python) hoặc frontend (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)