Update quality tooling for formatting
# What does this PR do?

This updates the quality tools for 2023. Mainly:
- use black 23
- replace isort and flake8 by ruff, which is faster and merges imports contrarily to isort
- change a few rules in the isorting
_The documentation is not available anymore as the PR was closed or merged._