Skip to content

Commit ef1941b

Browse files
authored
Merge pull request #18 from oesteban/maint/add-travis
CI: Add TravisCI for code linting with ``flake8``
2 parents 5898b05 + a3287f3 commit ef1941b

File tree

3 files changed

+21
-2
lines changed

3 files changed

+21
-2
lines changed

.travis.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# vim ft=yaml
2+
language: python
3+
sudo: false
4+
cache:
5+
directories:
6+
- $HOME/.cache/pip
7+
8+
python:
9+
- 3.6
10+
11+
before_install:
12+
- python -m pip install --upgrade pip
13+
- pip install "flake8<3.0" flake8-putty
14+
15+
script:
16+
- flake8 dmriprep

README.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ dmriprep
1111
.. image:: https://circleci.com/gh/nipreps/dmriprep.svg?style=svg
1212
:target: https://circleci.com/gh/nipreps/dmriprep
1313

14+
.. image:: https://travis-ci.org/nipreps/dmriprep.svg?branch=master
15+
:target: https://travis-ci.org/nipreps/dmriprep
16+
1417
.. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.3392201.svg
1518
:target: https://doi.org/10.5281/zenodo.3392201
1619

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ parentdir_prefix =
9090
[flake8]
9191
max-line-length = 99
9292
doctests = True
93-
exclude=*build/
93+
exclude=*build/,*/_afq/*
9494
select = C,E,F,W,B,B950
95-
ignore = N802,N806,W503,E203
95+
ignore = N802,N806,W504,E203
9696
putty-ignore =
9797
*/__init__.py : +F401
9898
docs/conf.py : +E265

0 commit comments

Comments
 (0)