Bump ruff pre-commit hook from v0.15.7 to latest v0.16.8
We last bumped the ruff pre-commit hook in c328fa27f
to then-latest version 0.15.7 (2026-03-19) [1].
Let's upgrade to latest version 0.16.8 (2026-09-16) [2].
Version 0.16 expanded its default set to many more rules [3],
which were either fixed or ignored in previous commits.
It also removed removed 18 opinionated pycodestyle/pyflakes
rules (E401/E402/E7xx/E74x, F403/F405/F406/F722), which we
were already following.
So we add the old E4/E7/E9/F groups back on via extend-select
to keep enforcing them alongside the new defaults.
[1] https://github.com/astral-sh/ruff/releases/tag/0.15.7
[2] https://github.com/astral-sh/ruff/releases/tag/0.16.8
[3] https://astral.sh/blog/ruff-v0.16.0