Skip to content

Commit 5111bc1

Browse files
committed
add ruff check
1 parent c238924 commit 5111bc1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/run-ruff.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,17 @@ jobs:
1515
- name: Install uv
1616
uses: astral-sh/setup-uv@v5
1717

18+
- name: Install dependencies
19+
run: uv sync
20+
1821
- name: Check static error
1922
run: |
20-
uv tool run ruff@0.8.0 check --show-fixes --output-format=github
23+
uv run ruff check --show-fixes --output-format=github
2124
2225
- name: Reformat code style
2326
run: |
2427
echo '## Reformat summary' >> $GITHUB_STEP_SUMMARY
25-
if diff_output="$(uv tool run ruff@0.8.0 format --diff 2>&1)"; then
28+
if diff_output="$(uv run ruff format --diff 2>&1)"; then
2629
echo "$diff_output"
2730
echo '✅ Format check passed.' >> "$GITHUB_STEP_SUMMARY"
2831
else

0 commit comments

Comments
 (0)