Skip to content

Commit c4edf4b

Browse files
PIG208timabbott
authored andcommitted
lint: Add isort as a linter.
1 parent 6f3f9bf commit c4edf4b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tools/lint

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ def run() -> None:
3737
linter_config.external_linter(
3838
"gitlint", ["tools/lint-commits"], description="Git Lint for commit messages"
3939
)
40+
linter_config.external_linter(
41+
"isort",
42+
["isort"],
43+
["py"],
44+
description="Sorts Python import statements",
45+
check_arg=["--check-only", "--diff"],
46+
)
4047

4148
@linter_config.lint
4249
def custom_py() -> int:

0 commit comments

Comments
 (0)