Skip to content

Commit

Permalink
MRG: Spelling (mne-tools#3154)
Browse files Browse the repository at this point in the history
* FIX: Spelling

* FIX: Add to Travis

* FIX: Fix path

* FIX: Fix spelling error
  • Loading branch information
larsoner authored and agramfort committed Apr 22, 2016
1 parent 604cf50 commit b9f34a9
Show file tree
Hide file tree
Showing 42 changed files with 346 additions and 99 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Expand Up @@ -68,6 +68,11 @@ install:
fi;
- if [ "${DEPS}" == "nodata" ]; then
pip install -q flake8;
wget -q https://github.com/lucasdemarchi/codespell/archive/v1.8.tar.gz;
tar xzf v1.8.tar.gz;
cp codespell-1.8/codespell.py ~/miniconda/envs/testenv/bin;
rm v1.8.tar.gz;
rm -r codespell-1.8;
fi;
- pip install -q coveralls nose-timer
# check our versions for the major packages
Expand Down Expand Up @@ -135,6 +140,9 @@ script:
- if [ "${DEPS}" == "nodata" ]; then
make flake;
fi;
- if [ "${DEPS}" == "nodata" ]; then
make codespell-error;
fi;

after_success:
# Need to run from source dir to exectue "git" commands
Expand Down
12 changes: 8 additions & 4 deletions Makefile
Expand Up @@ -5,7 +5,9 @@
PYTHON ?= python
NOSETESTS ?= nosetests
CTAGS ?= ctags

# The *.fif had to be there twice to be properly ignored (!)
CODESPELL_SKIPS ?= "*.fif,*.fif,*.eve,*.gz,*.tgz,*.zip,*.mat,*.stc,*.label,*.w,*.bz2,*.annot,*.sulc,*.log,*.local-copy,*.orig_avg,*.inflated_avg,*.gii,*.pyc,*.doctree,*.pickle,*.inv,*.png,*.edf,*.touch,*.thickness,*.nofix,*.volume,*.defect_borders,*.mgh,lh.*,rh.*,COR-*,FreeSurferColorLUT.txt,*.examples,.xdebug_mris_calc,bad.segments,BadChannels,*.hist,empty_file,*.orig"
CODESPELL_DIRS ?= mne/ doc/ tutorials/ examples/
all: clean inplace test test-doc

clean-pyc:
Expand Down Expand Up @@ -98,9 +100,11 @@ flake:
fi;
@echo "flake8 passed"

codespell:
# The *.fif had to be there twice to be properly ignored (!)
codespell.py -w -i 3 -S="*.fif,*.fif,*.eve,*.gz,*.tgz,*.zip,*.mat,*.stc,*.label,*.w,*.bz2,*.coverage,*.annot,*.sulc,*.log,*.local-copy,*.orig_avg,*.inflated_avg,*.gii" ./dictionary.txt -r .
codespell: # running manually
@codespell.py -w -i 3 -q 3 -S $(CODESPELL_SKIPS) -D ./dictionary.txt $(CODESPELL_DIRS)

codespell-error: # running on travis
@codespell.py -i 0 -q 7 -S $(CODESPELL_SKIPS) -D ./dictionary.txt $(CODESPELL_DIRS) | tee /dev/tty | wc -l | xargs test 0 -eq

manpages:
@echo "I: generating manpages"
Expand Down

0 comments on commit b9f34a9

Please sign in to comment.