From c4edf4bd2f6e3f82a92a8ca5ea02ecb68a55b075 Mon Sep 17 00:00:00 2001 From: PIG208 <359101898@qq.com> Date: Fri, 28 May 2021 17:06:00 +0800 Subject: [PATCH] lint: Add isort as a linter. --- tools/lint | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/lint b/tools/lint index 61e8935..d9691c6 100755 --- a/tools/lint +++ b/tools/lint @@ -37,6 +37,13 @@ def run() -> None: linter_config.external_linter( "gitlint", ["tools/lint-commits"], description="Git Lint for commit messages" ) + linter_config.external_linter( + "isort", + ["isort"], + ["py"], + description="Sorts Python import statements", + check_arg=["--check-only", "--diff"], + ) @linter_config.lint def custom_py() -> int: