Skip to content

Commit 9359372

Browse files
committed
Use stickler for coding standards
1 parent 4b02afc commit 9359372

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

.stickler.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
linters:
2-
flake8:
3-
pep8:
2+
flake8:
3+
max-line-length: 100
4+
max-complexity: 10
45
files:
5-
ignore: ['*.ipynb']
6+
ignore: ['*.ipynb', 'conf.py']

.travis.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ matrix:
1717
env: TEST_TARGET=default
1818
- python: 3.6
1919
env: TEST_TARGET=default
20-
- python: 3.6
21-
env: TEST_TARGET=coding_standards
2220
- python: 3.6
2321
env: TEST_TARGET=notebooks
2422
- python: 2.7
@@ -61,12 +59,8 @@ script:
6159
python setup.py test ;
6260
fi
6361

64-
- if [[ $TEST_TARGET == 'coding_standards' ]]; then
65-
find . -type f -name "*.py" ! -name 'conf.py' | xargs flake8 --max-line-length=100 ;
66-
for file in $(find . -type f -name "*.ipynb"); do jupyter nbconvert --template=tests/strip_markdown.tpl --stdout --to python $file | grep -v '^get_ipython' | flake8 - --ignore=W391,E226,E402 --max-line-length=100 --show-source ; done ;
67-
fi
68-
6962
- if [[ $TEST_TARGET == 'notebooks' ]]; then
63+
for file in $(find . -type f -name "*.ipynb"); do jupyter nbconvert --template=tests/strip_markdown.tpl --stdout --to python $file | grep -v '^get_ipython' | flake8 - --ignore=W391,E226,E402 --max-line-length=100 --show-source ; done ;
7064
py.test -vv tests/notebooks/test_notebooks.py ;
7165
doctr deploy --built-docs=examples/results --gh-pages-docs=gallery ;
7266
fi

0 commit comments

Comments
 (0)