-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update changelodg * use deno validator * do not validate during tests * update doc * update links in changelog * add release protocol * fix links * fix
- Loading branch information
Showing
18 changed files
with
273 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ cff-version: 1.2.0 | |
|
||
title: bids-matlab | ||
|
||
version: 0.2.0 | ||
version: 0.3.0 | ||
|
||
license: MIT | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
.PHONY: clean manual | ||
.PHONY: clean manual | ||
|
||
clean: | ||
rm version.txt | ||
|
||
version.txt: clean CITATION.cff | ||
grep -w "^version" CITATION.cff | sed "s/version: /v/g" > version.txt | ||
|
||
manual: | ||
cd docs && sh create_manual.sh | ||
|
||
update_schema: | ||
wget https://bids-specification.readthedocs.io/en/latest/schema.json -O schema.json | ||
# get schema from a PR on the spec | ||
# wget https://bids-specification--1377.org.readthedocs.build/en/1377/schema.json -O schema.json | ||
|
||
release: version.txt | ||
python docs/generate_doc.py | ||
python docs/add_links_to_changelog.py |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# replace PR numbers and github usernames with links | ||
from __future__ import annotations | ||
|
||
import re | ||
|
||
from utils import root_dir | ||
|
||
change_log = root_dir() / "docs" / "source" / "changelog.md" | ||
|
||
with open(change_log) as f: | ||
lines = f.readlines() | ||
|
||
with open(change_log, "w") as f: | ||
for line in lines: | ||
if match := re.search(r" @([a-zA-Z0-9_\-]+)", line): | ||
username = match[1] | ||
line = line.replace( | ||
match[0], f" by [{username}](https://github.com/{username}) " | ||
) | ||
|
||
if match := re.search(r"\#([0-9]+)", line): | ||
pr_number = match[1] | ||
line = line.replace( | ||
match[0], | ||
f"[{pr_number}](https://github.com/bids-standard/bids-matlab/pull/{pr_number})", | ||
) | ||
|
||
f.write(line) |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from __future__ import annotations | ||
|
||
from pathlib import Path | ||
|
||
|
||
def root_dir() -> Path: | ||
"""Return path to root directory.""" | ||
return Path(__file__).parent.parent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
function validate_dataset(bids_path) | ||
|
||
if ispc | ||
return | ||
end | ||
|
||
[sts, msg] = bids.validate(bids_path, '--config.ignore=99 --ignoreNiftiHeaders'); | ||
[sts, msg] = bids.validate(bids_path, '--ignoreNiftiHeaders'); | ||
assert(sts == 0, msg); | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v0.2.0 | ||
v0.3.0 |