forked from bids-standard/bids-specification
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
28 lines (20 loc) · 763 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.PHONY: tools/contributors.tsv
validate_citation_cff: CITATION.cff
cffconvert --validate
update_contributors:
python tools/add_contributors.py
python tools/print_contributors.py
yarn all-contributors generate
runprettier:
prettier --write "src/schema/**/*.yaml"
python3 -m yamllint -f standard src/schema/ -c .yamllint.yml
SCHEMA_CHANGES := $(shell git diff --name-only | grep src/schema/*.yaml)
commitschema:
@echo SCHEMA_CHANGES $(SCHEMA_CHANGES)
git add src/schema/*.yaml && \
git commit -m "[git-blame-ignore-rev] prettified schema files." && \
git log --grep "\[git-blame-ignore-rev\]" --pretty=format:"# %ai - %ae - %s%n%H" >> .git-blame-ignore-revs \
|| true
formatschema: runprettier commitschema
all:
.PHONY: runprettier commitschema