🔵 Update and Run Checks/Tests¶
This mirrors real work where we typically:
- Update dependencies (for security and compatibility).
- Clean unused cached packages to free space.
- Use
git add .to stage all changes. - Run Ruff to format, lint, and fix minor issues.
- Update Pre-commit periodically.
- Run Pre-commit quality checks on all code files (twice if needed, the first pass may fix things).
- 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