From fa857bc9c3b9b1423db62696fe84e13ecdd3b4c2 Mon Sep 17 00:00:00 2001 From: Jan Beran Date: Tue, 9 Jan 2024 19:52:15 +0100 Subject: [PATCH] feat: Use python-reorder-imports instead of isort --- .pre-commit-config.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9fb3020021..69a2da8423 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -41,11 +41,12 @@ repos: hooks: - id: flake8 args: ['--config=.flake8', '--tee', '--benchmark'] - - repo: https://github.com/pycqa/isort - rev: 5.12.0 # python 3.8 compatible + - repo: https://github.com/asottile/reorder-python-imports + rev: v3.12.0 hooks: - - id: isort - name: isort (python) + - id: reorder-python-imports + name: Reorder Python imports + args: [--py38-plus] exclude: > (?x)^( .*_pb2.py