checking-changes

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Checking Changes

检查代码变更

Run at the end of a work session or after completing a set of changes — not after every small edit.
bash
make check
This runs formatting, linting, type checking, and unit tests on all uncommitted files (staged, unstaged, and untracked).
在工作会话结束时运行,或在完成一组代码变更后运行——不要在每次小修改后都运行。
bash
make check
该命令会对所有未提交的文件(已暂存、未暂存和未跟踪的文件)运行格式化、代码检查、类型检查和单元测试。

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
  1. 运行
    make check
  2. 如果发现问题:
    • 修复报告的错误
    • 重新运行
      make check
    • 重复操作直到所有检查通过
  3. 只有当
    make check
    执行成功时,才认为工作完成

Notes

注意事项

  • E2E tests are not included; use
    make run-e2e-test e2e_playwright/<test>_test.py
    separately if needed
  • 不包含E2E测试;如果需要,请单独使用
    make run-e2e-test e2e_playwright/<test>_test.py
    命令