From c41b732fbdd9a3b650f4a55d61fc1c705cd76b5c Mon Sep 17 00:00:00 2001 From: Min RK Date: Thu, 31 Mar 2022 12:21:57 +0200 Subject: [PATCH] switch to isort for import formatting isort produces nicer imports without wasting a huge amount of space --- .pre-commit-config.yaml | 6 +++--- pyproject.toml | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a1ca71df..b5a9bd0e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,10 +18,10 @@ repos: - --py36-plus # Autoformat: Python code - - repo: https://github.com/asottile/reorder_python_imports - rev: v3.0.1 + - repo: https://github.com/pycqa/isort + rev: 5.10.1 hooks: - - id: reorder-python-imports + - id: isort # Autoformat: Python code - repo: https://github.com/psf/black diff --git a/pyproject.toml b/pyproject.toml index e81f0658..41e217a2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,6 @@ +[tool.isort] +profile = "black" + [tool.black] skip-string-normalization = true target_version = [