Skip to content

Commit 6c8e136

Browse files
author
Ben Cipollini
committed
TST: add flake8 of core nibabel code to TravisCI
1 parent abf827a commit 6c8e136

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ before_install:
6262
- virtualenv --python=python venv
6363
- source venv/bin/activate
6464
- python --version # just to check
65-
- pip install -U pip # upgrade to latest pip to find 3.5 wheels
66-
- retry pip install nose # always
65+
- pip install -U pip wheel # upgrade to latest pip find 3.5 wheels; wheel to avoid errors
66+
- retry pip install nose flake8 # always
6767
- wheelhouse_pip_install $DEPENDS
6868
# pydicom <= 0.9.8 doesn't install on python 3
6969
- if [ "${TRAVIS_PYTHON_VERSION:0:1}" == "2" ]; then
@@ -98,6 +98,8 @@ install:
9898
- export NIBABEL_DATA_DIR="$PWD/nibabel-data"
9999
# command to run tests, e.g. python setup.py test
100100
script:
101+
# Run styles first, only on core nibabel code.
102+
- flake8 nibabel
101103
# Change into an innocuous directory and find tests from installation
102104
- mkdir for_testing
103105
- cd for_testing

0 commit comments

Comments
 (0)