lint: Add isort as a linter.

This commit is contained in:
PIG208 2021-05-28 17:06:00 +08:00 committed by Tim Abbott
parent 6f3f9bf7e4
commit c4edf4bd2f

View file

@ -37,6 +37,13 @@ def run() -> None:
linter_config.external_linter( linter_config.external_linter(
"gitlint", ["tools/lint-commits"], description="Git Lint for commit messages" "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 @linter_config.lint
def custom_py() -> int: def custom_py() -> int: