.gitconfig 418 Bytes
Newer Older
William Monroe's avatar
William Monroe committed
1
[core]
William Monroe's avatar
William Monroe committed
2
attributesfile = ~/.gitattributes
William Monroe's avatar
William Monroe committed
3
4
5
6
7
8
9
10
[filter "nbstrip_full"]
clean = "jq --indent 1 \
        '(.cells[] | select(has(\"outputs\")) | .outputs) = []  \
        | (.cells[] | select(has(\"execution_count\")) | .execution_count) = null  \
        | .metadata = {\"language_info\": {\"name\": \"python\", \"pygments_lexer\": \"ipython3\"}} \
        | .cells[].metadata = {} \
        '"
smudge = cat
William Monroe's avatar
William Monroe committed
11
required = true