Skip to content

Commit

Permalink
Move linting to pre-commit (vllm-project#11975)
Browse files Browse the repository at this point in the history
Signed-off-by: Harry Mellor <[email protected]>
  • Loading branch information
hmellor authored Jan 20, 2025
1 parent 51ef828 commit 3ea7b94
Show file tree
Hide file tree
Showing 26 changed files with 725 additions and 1,287 deletions.
2 changes: 1 addition & 1 deletion .buildkite/nightly-benchmarks/scripts/nightly-annotate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ main() {



# The figures should be genereated by a separate process outside the CI/CD pipeline
# The figures should be generated by a separate process outside the CI/CD pipeline

# # generate figures
# python3 -m pip install tabulate pandas matplotlib
Expand Down
40 changes: 0 additions & 40 deletions .github/workflows/actionlint.yml

This file was deleted.

53 changes: 0 additions & 53 deletions .github/workflows/clang-format.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/codespell.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/doc-lint.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/dummy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: dummy-checks

on:
pull_request:

jobs:
mypy:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- run: echo "This is a dummy step that always passes"
ruff:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12"]
steps:
- run: echo "This is a dummy step that always passes"
17 changes: 0 additions & 17 deletions .github/workflows/matchers/ruff.json

This file was deleted.

51 changes: 0 additions & 51 deletions .github/workflows/mypy.yaml

This file was deleted.

37 changes: 0 additions & 37 deletions .github/workflows/png-lint.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: pre-commit

on:
pull_request:
push:
branches: [main]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: "3.12"
- run: echo "::add-matcher::.github/workflows/matchers/actionlint.json"
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
52 changes: 0 additions & 52 deletions .github/workflows/ruff.yml

This file was deleted.

Loading

0 comments on commit 3ea7b94

Please sign in to comment.