1. Change the version in .pre-commit-config.yaml.
  2. Run pre-commit autoupdate

Next time you commit, the package will upgrade.