Switch to Python 3.6 for flake8 runs, re-enable E999 checks

This commit is contained in:
Lukasz Langa
2016-12-21 20:08:36 -08:00
parent 937a3ca3fe
commit 25a46f42be
3 changed files with 5 additions and 5 deletions

View File

@@ -12,10 +12,9 @@
# Nice-to-haves ignored for now
# 152 E128 continuation line under-indented for visual indent
# 43 E127 continuation line over-indented for visual indent
# 6 E999 invalid syntax - FIXME: re-enable after flake8 is running from Python 3.6
[flake8]
ignore = F401, F811, E127, E128, E301, E302, E305, E501, E701, E704, E999, B303
ignore = F401, F811, E127, E128, E301, E302, E305, E501, E701, E704, B303
# We are checking with Python 3 but many of the stubs are Python 2 stubs.
# A nice future improvement would be to provide separate .flake8
# configurations for Python 2 and Python 3 files.

View File

@@ -3,7 +3,7 @@ language: python
matrix:
include:
- python: "3.5"
- python: "3.6-dev"
env: TEST_CMD="flake8"
- python: "3.5"
env: TEST_CMD="./tests/mypy_test.py"
@@ -12,7 +12,8 @@ matrix:
install:
# pytype needs py-2.7, mypy needs py-3.2+. Additional logic in runtests.py
- if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then pip install -U git+git://github.com/python/mypy git+git://github.com/dropbox/typed_ast flake8==3.2.1 flake8-bugbear>=16.12.2 flake8-pyi>=16.12.1; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.6-dev' ]]; then pip install -U flake8==3.2.1 flake8-bugbear>=16.12.2 flake8-pyi>=16.12.2; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then pip install -U git+git://github.com/python/mypy git+git://github.com/dropbox/typed_ast; fi
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install -U git+git://github.com/google/pytype; fi
script:

View File

@@ -2,4 +2,4 @@ mypy-lang>=0.4.6
typed-ast>=0.6.1
flake8==3.2.1
flake8-bugbear>=16.12.2
flake8-pyi>=16.12.1
flake8-pyi>=16.12.2