From 30c69b81c7a079d838b0dc27ee72e9ed267d3c4b Mon Sep 17 00:00:00 2001 From: Zhenyu Jiang Date: Sat, 4 Dec 2021 16:07:52 -0600 Subject: [PATCH] Avoid conflict between isort and black (#214) Specify black profile for isort inside .pre-commit-config.yaml just in case someone deletes the setup.cfg --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dad27b3..6ee1fe3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,6 +22,7 @@ repos: rev: 5.8.0 hooks: - id: isort + args: ["--profile", "black", "--filter-files"] # yaml formatting - repo: https://github.com/pre-commit/mirrors-prettier