Travis CI: Upgrade dependencies, Add flake8 tests
language: python
python:
- "2.7"
- - "3.6"
+ - "3.8"
# command to install dependencies
install:
- - "pip install -U pyparsing==2.0.1"
- - "pip install -U pytest>=3.6.0"
- - "pip install -U flake8>=3.5.0"
+ - "pip install --upgrade flake8>=3.7.9 pyparsing==2.4.4 pytest==4.6.6"
# install modules shipped with pythonista
- "pip install -r tests/pythonista_modules.txt"
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
+ - flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
+ # exit-zero treats all errors as warnings.
+ - flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics
# show pytest version
- - py.test --version
+ - pytest --version
# command to run tests
-script: py.test tests/ --ignore=tests/system/data/ --showlocals --verbose --show-capture=all --log-level=debug
+script: pytest tests/ --ignore=tests/system/data/ --showlocals --verbose --show-capture=all --log-level=debug
