# How to Upgrade Python Developer Tools


Each handbook page shows a version badge for the tools its commands depend on. If a command doesn't match what you see, check your version and upgrade.

## Check your version

```bash
uv --version
ruff --version
```

Compare with the table below.

## Upgrade

{{< tool-upgrade-table >}}

These commands assume the most common install method. A Homebrew install of uv needs `brew upgrade uv`, not `uv self update`. See [How to upgrade uv](https://pydevtools.com/handbook/how-to/how-to-upgrade-uv.md) for the full matrix.

## Upgrade dev dependencies through the lockfile

Tools in a project's dev dependencies (pytest, mypy) upgrade through the lockfile:

```bash
uv lock --upgrade-package pytest
uv sync
```

## Learn More

- [How to upgrade uv](https://pydevtools.com/handbook/how-to/how-to-upgrade-uv.md)
- [How to keep Python up to date](https://pydevtools.com/handbook/how-to/how-to-keep-python-up-to-date-with-uv-python-upgrade.md)
- [How to maintain a uv project](https://pydevtools.com/handbook/how-to/how-to-maintain-a-uv-project.md)
