Created
September 17, 2020 11:11
-
-
Save jmarshall/f43df0ae871b6d9bd71b9c48e1517872 to your computer and use it in GitHub Desktop.
Codespell wrapper script and filters for HTSlib et al
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
#!/bin/sh | |
skip=`(cat /dev/null $(find . -name 'wt-*' -prune -o -name .gitignore -print) | sed '/^$/d;s&^.*/&&'; printf '.DS_Store,*.dSYM | |
*.sam,*.bam,*.cram | |
*.fq,*.vcf | |
*.bed,*.bai,*.csi,*.crai,*.gz,*.gz.* | |
*.out,*.expected | |
aclocal.m4 | |
.git,interesting,wt-*')|tr '\n' ,` | |
datadir=$HOME/htslib/interesting | |
exec codespell --ignore-words $datadir/codespell.ignore --exclude-file=$datadir/codespell.exclude --skip "$skip" "$@" |
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
.TE |
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
alloced | |
als | |
fpr | |
hist | |
iff | |
seeked | |
som | |
strat |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wt-*
is my local convention for additional Git working trees. I create extra ephemeral working trees within my main checked out repository directory for a project and have/wt-*
in a global excludesfile.git worktree
is fantastic.(And
interesting
is for notes, data files, etc.)