Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 792c418

Browse files
committed
fix travis with pep8
1 parent 190050b commit 792c418

3 files changed

Lines changed: 18 additions & 5 deletions

File tree

.travis.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,22 @@ matrix:
55
- python: 3.4
66
env:
77
- COVERAGE=false
8+
- TESTARGS=""
89
- python: 3.5
910
env:
1011
- COVERAGE=false
12+
- TESTARGS=""
1113
- python: 3.6
1214
env:
1315
- COVERAGE=true
16+
- TESTARGS="--mpl --pep8"
1417
- python: 3.7
1518
language: python
1619
sudo: required
1720
dist: xenial
1821
env:
1922
- COVERAGE=false
20-
- ARGS=""
23+
- TESTARGS=""
2124

2225
before_install:
2326
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
@@ -29,17 +32,16 @@ before_install:
2932

3033

3134
install:
32-
- conda create --yes -n test python=$TRAVIS_PYTHON_VERSION scipy seaborn coverage docopt requests pyyaml pytest pytest-mpl pytest-cov --channel=conda-forge
35+
- conda create --yes -n test python=$TRAVIS_PYTHON_VERSION scipy seaborn coverage docopt requests pyyaml pytest pytest-mpl pytest-cov pytest-pep8 --channel=conda-forge
3336
- source activate test
3437
- pip install coveralls
3538
- pip install .
3639

3740
script:
38-
- coverage run --source paramnormal check_paramnormal.py --mpl --verbose
41+
- coverage run --source paramnormal check_paramnormal.py --verbose $TESTARGS
3942

4043
after_success:
4144
- if [ ${COVERAGE} = true ]; then
4245
coverage report -m;
4346
coveralls;
4447
fi
45-

paramnormal/tests/test_dist.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ def setup(self):
158158
self.cargs = []
159159
self.ckwds = dict(alpha=2)
160160

161-
162161
def do_check(self, size):
163162
pass
164163

setup.cfg

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
11
[metadata]
22
description-file = readme.rst
3+
4+
[tool:pytest]
5+
pep8ignore =
6+
E501
7+
E131
8+
check_paramnormal.py ALL
9+
paramnormal/examples/* ALL
10+
paramnormal/tests/* E501 E241
11+
docs/* ALL
12+
13+
[pep8]
14+
max-line-length = 100

0 commit comments

Comments
 (0)