Skip to content

Commit edd6dcd

Browse files
authored
ci: move pre-commit checks to pre commit action (#577)
1 parent 0b6a773 commit edd6dcd

File tree

3 files changed

+9
-31
lines changed

3 files changed

+9
-31
lines changed

.github/workflows/checks.yaml

Lines changed: 0 additions & 26 deletions
This file was deleted.

.github/workflows/pr.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ concurrency:
1616
jobs:
1717
pr-builder:
1818
needs:
19-
- checks
19+
- pre-commit
2020
- compute-matrix
2121
- build-conda
2222
- test-conda
@@ -31,8 +31,14 @@ jobs:
3131
- coverage-report
3232
secrets: inherit
3333
uses: rapidsai/shared-workflows/.github/workflows/[email protected]
34-
checks:
35-
uses: ./.github/workflows/checks.yaml
34+
pre-commit:
35+
runs-on: ubuntu-latest
36+
steps:
37+
- uses: actions/checkout@v4
38+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065
39+
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd
40+
with:
41+
extra_args: --all-files --show-diff-on-failure
3642
compute-matrix:
3743
runs-on: ubuntu-latest
3844
outputs:

.pre-commit-config.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,12 @@ repos:
77
hooks:
88
- id: check-added-large-files
99
- id: check-ast
10-
- id: check-json
1110
- id: check-merge-conflict
1211
- id: check-toml
1312
- id: check-yaml
1413
exclude: ^conda/recipes/numba-cuda/meta.yaml
1514
- id: debug-statements
1615
- id: end-of-file-fixer
17-
- id: requirements-txt-fixer
1816
- id: trailing-whitespace
1917
- id: mixed-line-ending
2018
args: ['--fix=lf']

0 commit comments

Comments
 (0)