Skip to content

Commit 5eba455

Browse files
committed
update pre-commit`
1 parent 9931e0a commit 5eba455

File tree

4 files changed

+26
-2
lines changed

4 files changed

+26
-2
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,18 @@ repos:
8888
language: python
8989
types:
9090
- text
91+
- id: check-jsonschema
92+
name: check-jsonschema
93+
entry: make check-jsonschema
94+
language: python
95+
files: (?x)^(
96+
\.github/workflows/[^/]+|
97+
\.gitlab-ci\.yml|
98+
\.gitlab/workflows/[^/]+|
99+
\.readthedocs\.yaml|
100+
\.renovaterc\.json
101+
)$
102+
pass_filenames: false
91103
- id: forbidden-files
92104
name: forbidden files
93105
entry: found Copier update rejection files; review them and remove them

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ codespell:
9191
# Check jsonschema with check-jsonschema.
9292
check-jsonschema:
9393
check-jsonschema --builtin-schema vendor.github-workflows .github/workflows/*.yml
94-
check-jsonschema --builtin-schema vendor.gitlab-ci .gitlab-ci.yml .gitlab/workflows/*.yml
94+
check-jsonschema --builtin-schema vendor.gitlab-ci --data-transform gitlab-ci .gitlab-ci.yml .gitlab/workflows/*.yml
9595
check-jsonschema --builtin-schema vendor.readthedocs .readthedocs.yaml
9696
check-jsonschema --builtin-schema vendor.renovate .renovaterc.json
9797

template/.pre-commit-config.yaml.jinja

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,18 @@ repos:
9191
language: python
9292
types:
9393
- text
94+
- id: check-jsonschema
95+
name: check-jsonschema
96+
entry: make check-jsonschema
97+
language: python
98+
files: (?x)^(
99+
\.github/workflows/[^/]+|
100+
\.gitlab-ci\.yml|
101+
\.gitlab/workflows/[^/]+|
102+
\.readthedocs\.yaml|
103+
\.renovaterc\.json
104+
)$
105+
pass_filenames: false
94106
- id: forbidden-files
95107
name: forbidden files
96108
entry: found Copier update rejection files; review them and remove them

template/Makefile.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ check-jsonschema:
9696
check-jsonschema --builtin-schema vendor.github-workflows .github/workflows/*.yml
9797
[%- endif %]
9898
[%- if repo_platform == 'gitlab' or repo_platform == 'gitlab-self-managed' or project_name == "Serious Scaffold Python" %]
99-
check-jsonschema --builtin-schema vendor.gitlab-ci .gitlab-ci.yml .gitlab/workflows/*.yml
99+
check-jsonschema --builtin-schema vendor.gitlab-ci --data-transform gitlab-ci .gitlab-ci.yml .gitlab/workflows/*.yml
100100
[%- endif %]
101101
check-jsonschema --builtin-schema vendor.readthedocs .readthedocs.yaml
102102
check-jsonschema --builtin-schema vendor.renovate .renovaterc.json

0 commit comments

Comments
 (0)