Skip to content

🔵 Update and Run Checks/Tests

This mirrors real work where we typically:

  1. Update dependencies (for security and compatibility).
  2. Clean unused cached packages to free space.
  3. Use git add . to stage all changes.
  4. Run Ruff to format, lint, and fix minor issues.
  5. Update Pre-commit periodically.
  6. Run Pre-commit quality checks on all code files (twice if needed, the first pass may fix things).
  7. Run tests.

In VS Code, open your repository, then open a terminal (Terminal / New Terminal). Run the following commands one at a time to update and check the code after running git pull.

uv sync --extra dev --extra docs --upgrade
uv cache clean
git add .
uvx ruff check --fix
uvx pre-commit autoupdate
uv run pre-commit run --all-files
git add .
uv run pytest