Skip to content

Commit fd139da

Browse files
committed
qa: data validation pre-commit
1 parent 7dad9fc commit fd139da

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.pre-commit-config.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,23 @@ repos:
6060
- --disable=E113 # Disable empty docstrings
6161
- --summary # Print a summary
6262

63+
# Conference data validation
64+
- repo: local
65+
hooks:
66+
- id: conference-data-validation
67+
name: Validate conference data schema
68+
entry: python utils/sort_yaml.py --skip_links
69+
language: system
70+
files: '^_data/(conferences|archive|legacy)\.yml$'
71+
pass_filenames: false
72+
73+
- id: conference-csv-validation
74+
name: Validate CSV conference data
75+
entry: python utils/conferences/linters/validate.py
76+
language: system
77+
files: '^utils/conferences/.*\.csv$'
78+
pass_filenames: false
79+
6380
ci:
6481
autofix_commit_msg: |
6582
[pre-commit.ci] auto fixes from pre-commit.com hooks

0 commit comments

Comments
 (0)