Skip to content

Commit aa63389

Browse files
chore: pick the fix from the apache#933
1 parent e52a708 commit aa63389

1 file changed

Lines changed: 22 additions & 12 deletions

File tree

.github/workflows/pre-commit.yml

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,28 @@ jobs:
4545
with:
4646
submodules: true
4747

48-
- name: cmake-format check
49-
run: |
50-
pip install pre-commit
51-
pre-commit install
52-
pre-commit run cmake-format -a
53-
48+
- name: cmake-format
49+
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
50+
with:
51+
extra_args: cmake-format
52+
5453
- name: clang-format
55-
run: pre-commit run clang-format -a
54+
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
55+
with:
56+
extra_args: cmake-format
57+
58+
- name: ruff-check
59+
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
60+
with:
61+
extra_args: ruff-check
62+
63+
- name: ruff-format
64+
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
65+
with:
66+
extra_args: ruff-format
5667

57-
- name: python
58-
run: |
59-
pre-commit run ruff-check
60-
pre-commit run ruff-format
61-
pre-commit run typos
68+
- name: typos
69+
uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
70+
with:
71+
extra_args: typos
6272

0 commit comments

Comments
 (0)