Skip to content

Commit e82850e

Browse files
committed
CI: Add TravisCI for code linting with flake8
Although this doesn't implement #16, it addresses the need for checking code style before merging in changes. This PR is not meant as an alternative to Black, but rather as an easy first step towards more comprehensive linting, while offloading the contributors from setting up anything on their end.
1 parent 5898b05 commit e82850e

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-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

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)