diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cf975d2788..86c33b3b19 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -37,11 +37,12 @@ repos: hooks: - id: flake8 args: ['--config=.flake8', '--tee', '--benchmark'] - - repo: https://github.com/pycqa/isort - rev: 5.11.5 # python 3.7 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: [--py37-plus] exclude: > (?x)^( .*_pb2.py