Skip to content

Commit

Permalink
Use pymarkdownlnt add to format.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Rafael Vasquez <[email protected]>
  • Loading branch information
rafvasq committed Jan 9, 2025
1 parent d4a6be7 commit 6f638e9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,4 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements-lint.txt
- name: Linting docs
run: tools/sphinx-lint.sh
markdown-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- uses: DavidAnson/markdownlint-cli2-action@v19
with:
globs: "docs/**/*.md"
run: tools/doc-lint.sh
6 changes: 3 additions & 3 deletions format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,6 @@ else
echo "✨🎉 Format check passed! Congratulations! 🎉✨"
fi

echo 'vLLM sphinx-lint:'
tools/sphinx-lint.sh
echo 'vLLM sphinx-lint: Done'
echo 'vLLM doc-lint:'
tools/doc-lint.sh
echo 'vLLM doc-lint: Done'
2 changes: 1 addition & 1 deletion requirements-lint.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ruff==0.6.5
codespell==2.3.0
isort==5.13.2
clang-format==18.1.5
sphinx-lint==1.0.0
pymarkdownlnt==0.9.26

# type checking
mypy==1.11.1
Expand Down
3 changes: 3 additions & 0 deletions tools/doc-lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

pymarkdownlnt -d line-length scan docs/ -r
3 changes: 0 additions & 3 deletions tools/sphinx-lint.sh

This file was deleted.

0 comments on commit 6f638e9

Please sign in to comment.