Skip to content

Commit e9f409b

Browse files
committed
lint: Add isort as a linter.
1 parent 8335534 commit e9f409b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/lint

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ def run() -> None:
2828
description="Standard Python linter (config: .flake8)")
2929
linter_config.external_linter('gitlint', ['tools/lint-commits'],
3030
description="Git Lint for commit messages")
31+
linter_config.external_linter("isort", ["isort"], ["py"],
32+
description="Sorts Python import statements",
33+
check_arg=["--check-only", "--diff"])
3134

3235
@linter_config.lint
3336
def custom_py() -> int:

0 commit comments

Comments
 (0)