Merge pull request #1614 from cclauss/patch-1

Use flake8 to look for syntax errors, undefined names
This commit is contained in:
Matthew Honnibal 2017-11-28 16:56:44 +01:00 committed by GitHub
commit a113638414
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -15,14 +15,17 @@ os:
env:
- VIA=compile LC_ALL=en_US.ascii
- VIA=compile
- VIA=flake8
#- VIA=pypi_nightly
install:
- "./travis.sh"
- pip install flake8
script:
- "pip install pytest pytest-timeout"
- if [[ "${VIA}" == "compile" ]]; then python -m pytest --tb=native spacy; fi
- if [[ "${VIA}" == "flake8" ]]; then flake8 . --count --exclude=spacy/compat.py,spacy/lang --select=E901,E999,F821,F822,F823 --show-source --statistics; fi
- if [[ "${VIA}" == "pypi_nightly" ]]; then python -m pytest --tb=native --models --en `python -c "import os.path; import spacy; print(os.path.abspath(os.path.dirname(spacy.__file__)))"`; fi
- if [[ "${VIA}" == "sdist" ]]; then python -m pytest --tb=native `python -c "import os.path; import spacy; print(os.path.abspath(os.path.dirname(spacy.__file__)))"`; fi