Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add flake8 to the testing (r9y9#75)
* Add flake8 to the testing

* Rerun tests
  • Loading branch information
cclauss authored and engiecat committed May 5, 2018
1 parent 4df56b9 commit 4bfda7e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .travis.yml
Expand Up @@ -21,13 +21,20 @@ before_install:
# Useful for debugging any issues with conda
- conda config --add channels pypi
- conda info -a
- deps='pip numpy scipy cython nose pytorch'
- deps='pip numpy scipy cython nose pytorch flake8'
- conda create -q -n test-environment "python=$TRAVIS_PYTHON_VERSION" $deps -c pytorch
- source activate test-environment

install:
- pip install -e ".[test]"
- python -c "import nltk; nltk.download('cmudict')"

before_script:
# stop the build if there are Python syntax errors or undefined names
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics

script:
- nosetests -v -w tests/ -a '!local_only'

0 comments on commit 4bfda7e

Please sign in to comment.