lint: Add isort as a linter.
This commit is contained in:
parent
6f3f9bf7e4
commit
c4edf4bd2f
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue