From 94e2a74e7060e23796c05cd58106077c7cf09681 Mon Sep 17 00:00:00 2001 From: KP <109694228@qq.com> Date: Mon, 27 Dec 2021 16:42:17 +0800 Subject: [PATCH] Add reorder-python-imports to pre-commit. --- .pre-commit-config.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5aaed9c0..4da61f4d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -30,3 +30,9 @@ - --show-source - --statistics files: \.py$ + +- repo: https://github.com/asottile/reorder_python_imports + rev: v2.4.0 + hooks: + - id: reorder-python-imports + exclude: (?=third_party).*(\.py)$ -- GitLab