Skip to content

Commit

Permalink
example-lint: Add ruff format as a linter.
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Kaseorg <[email protected]>
  • Loading branch information
andersk committed Oct 26, 2023
1 parent 53ecca4 commit 0695485
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions example-lint
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ def run() -> None:
fix_arg="--fix",
description="Python linter",
)
linter_config.external_linter(
"ruff-format",
["ruff", "format", "--quiet"],
["py"],
check_arg="--check",
description="Python linter",
)

@linter_config.lint
def check_custom_rules() -> int:
Expand Down

0 comments on commit 0695485

Please sign in to comment.