pre-commit runs black then isort and they fight over imports
pre-commit 3.6, black 24.2, isort 5.13. My .pre-commit-config.yaml runs isort and then black, but after a commit the file changes again on the next hook run — isort puts imports on one line, black wraps them, repeat. How do I configure them so they stop fighting? It's making every commit take three passes and I'm getting tired of it. I've checked that both are pinned in the hook config, so this isn't a version drift issue as far as I can tell.
4 replies