It might be worthwhile to update pre-commit hooks to use https://github.com/astral-sh/ruff-pre-commit. One could then remove isort and flake8 - maybe more. I also have the feeling that some of the current hooks undo each others changes in some instances. I have no current example.