Skip to content

Commit

Permalink
build: add check duty
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Oct 14, 2024
1 parent 9b30298 commit 7884056
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions duties.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,13 @@ def version(ctx, *args: str):
"""Bump package version."""
args_str = " " + " ".join(args) if args else ""
ctx.run(f"hatch version{args_str}")


@duty(capture=False)
def check(ctx, *args: str):
"""Lint"""
for cmd in[
"uv run ruff check .",
"uv run ruff format --check .",
"uv run mypy src/jinjarope/",
]:

0 comments on commit 7884056

Please sign in to comment.