Skip to content

Commit a87bc6c

Browse files
committed
Scope mdformat and shfmt CI checks to tracked files only
Using git ls-files prevents the linters from descending into .venv. ruff already respects .gitignore so needed no change.
1 parent 7923294 commit a87bc6c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ jobs:
2525
run: uv run ruff check .
2626

2727
- name: Check Markdown formatting
28-
run: uv run mdformat --check .
28+
run: git ls-files '*.md' | xargs -r uv run mdformat --check
2929

3030
- name: Check shell formatting
31-
run: shfmt -d .
31+
run: git ls-files '*.sh' | xargs -r shfmt -d
3232

3333
test:
3434
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)