Skip to content

Commit 2ad8860

Browse files
committed
pre-commit: put sorting back into config and disable for pre-commit.ci
1 parent 746afa5 commit 2ad8860

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717
- uses: actions/setup-python@v5
18-
- uses: pre-commit/action@v3.0.1
19-
- run: |
18+
- name: install dependencies for sorting regressionfiles.yaml
19+
run: |
2020
python -m pip install 'ruamel.yaml'
21-
./sort_regressionfiles_yaml.sh
21+
- uses: pre-commit/action@v3.0.1

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
---
22
fail_fast: false
3+
ci:
4+
skip:
5+
# The dependencies can't be installed on pre-commit.ci, but this runs in
6+
# the normal GitHub Actions workflow.
7+
- sort-regressionfiles-yaml
38
repos:
49
- repo: meta
510
hooks:
@@ -9,6 +14,13 @@ repos:
914
rev: "v5.0.0"
1015
hooks:
1116
- id: check-yaml
17+
- repo: local
18+
hooks:
19+
- id: sort-regressionfiles-yaml
20+
name: Sort regressionfiles.yaml
21+
entry: ./sort_regressionfiles_yaml.sh
22+
language: script
23+
files: ^regressionfiles\.yaml$
1224
- repo: https://github.com/Mateusz-Grzelinski/actionlint-py
1325
rev: "v1.7.3.17"
1426
hooks:

0 commit comments

Comments
 (0)