Skip to content

Commit 3ab0aab

Browse files
committed
build(python): use uv run instead of uv tool run for ruff commands
Generated-by: aiautocommit
1 parent eaf33da commit 3ab0aab

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

just/python.just

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ py_lint +FILES=".":
8383

8484
if [ -n "${CI:-}" ]; then
8585
# TODO I'm surprised that ruff doesn't auto detect github... need to double check on this
86-
uv tool run ruff check --output-format=github {{FILES}} || exit_code=$?
87-
uv tool run ruff format --check {{FILES}} || exit_code=$?
86+
uv run ruff check --output-format=github {{FILES}} || exit_code=$?
87+
uv run ruff format --check {{FILES}} || exit_code=$?
8888
uvx detect-shadowed-modules@latest || exit_code=$?
8989

9090
uv run pyright {{FILES}} --outputjson > pyright_report.json || exit_code=$?
@@ -106,7 +106,7 @@ py_lint +FILES=".":
106106
jq -r '(.ERRORS[] | "::\(if .severity == "HIGH" then "error" else "warning" end) file=\(.filename),line=\(.line_number),title=\(.id)::\(.message)"), (.WARNINGS[] | "::warning file=\(.filename),line=\(.line_number),title=\(.id)::\(.message)")' < j2link_report.json
107107
rm j2link_report.json
108108
else
109-
uv tool run ruff check {{FILES}} || exit_code=$?
109+
uv run ruff check {{FILES}} || exit_code=$?
110110
uv run pyright {{FILES}} || exit_code=$?
111111
uvx detect-shadowed-modules@latest || exit_code=$?
112112
uv run j2lint --extension j2,html {{JINJA_TEMPLATE_DIR}}
@@ -128,8 +128,8 @@ py_lint +FILES=".":
128128

129129
# automatically fix linting errors
130130
py_lint_fix:
131-
uv tool run ruff check . --fix
132-
uv tool run ruff format
131+
uv run ruff check . --fix
132+
uv run ruff format
133133

134134
uv run djlint --profile=jinja --reformat {{JINJA_TEMPLATE_DIR}}
135135

0 commit comments

Comments
 (0)