Bump pre-commit ruff hook to v0.13.1 to match the quality extra (#4089)
The pre-commit ruff hook was pinned at v0.2.1, which cannot parse the
current pyproject.toml (it ignores the UP045 and UP035 rule selectors that
0.2.1 does not know), so `pre-commit run` fails on a fresh checkout with
"Unknown rule selector: UP045". setup.py already pins ruff == 0.13.1 for the
quality extra, so this aligns the hook with the version the project targets.
Co-authored-by: devangpratap <devangpratap@proton.me>