Skip to content

Commit dae924a

Browse files
committed
📦✨ Add quick-tools task, for fast formatting and linting
1 parent 71a3e7c commit dae924a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

‎project_name/justfile.jinja‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ list-tasks:
44
alias f := format
55
alias t := test
66
alias l := lint
7+
alias q := quick-tools
78

89

910
### run once after init/clone ###
@@ -48,6 +49,16 @@ check-and-push:
4849
# Tests to run before push, tag, or release
4950
_check: test lint
5051

52+
# Run fast formatting and linting tools
53+
quick-tools:
54+
uv run ruff check --select I001 --fix -q
55+
{%- if format_tool == "black" %}
56+
uv run black -q .
57+
{%- elif format_tool == "ruff" %}
58+
uv run ruff format -q
59+
{%- endif %}
60+
uv run ruff check
61+
5162
# Format code and files
5263
format:
5364
uv run ruff check --select I001 --fix

0 commit comments

Comments
 (0)