From 035b1d036e35096d1aead06e0a99ffda0a136256 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Thu, 5 Aug 2021 10:32:12 +0200 Subject: [PATCH] [templates] Make isort black-compatible --- bob/devtools/templates/.isort.cfg | 1 + bob/devtools/templates/.pre-commit-config.yaml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bob/devtools/templates/.isort.cfg b/bob/devtools/templates/.isort.cfg index 8d7af1de..ab6c1fc5 100644 --- a/bob/devtools/templates/.isort.cfg +++ b/bob/devtools/templates/.isort.cfg @@ -1,4 +1,5 @@ [settings] +profile=black line_length=88 order_by_type=true lines_between_types=1 diff --git a/bob/devtools/templates/.pre-commit-config.yaml b/bob/devtools/templates/.pre-commit-config.yaml index aca55f5b..49cebe90 100644 --- a/bob/devtools/templates/.pre-commit-config.yaml +++ b/bob/devtools/templates/.pre-commit-config.yaml @@ -5,7 +5,7 @@ repos: rev: 5.8.0 hooks: - id: isort - args: [--sl, --line-length, "88"] + args: [--profile, "black", --sl, --line-length, "88"] - repo: https://github.com/psf/black rev: 20.8b1 hooks: -- GitLab