mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-18 14:29:47 +08:00
Enable flake8 tests
Ran both by Travis and locally. There's some setup required, README updated. A few important Flake8 checks are still disabled, we're going to enable them as soon as the stubs are fixed and we can reliably run Flake8 locally with Python 3.6.
This commit is contained in:
+3
-2
@@ -3,6 +3,8 @@ language: python
|
||||
|
||||
matrix:
|
||||
include:
|
||||
- python: "3.5"
|
||||
env: TEST_CMD="./tests/flake8_test.py"
|
||||
- python: "3.5"
|
||||
env: TEST_CMD="./tests/mypy_test.py"
|
||||
- python: "2.7"
|
||||
@@ -10,9 +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 && pip install -U git+git://github.com/dropbox/typed_ast; fi
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == '3.5' ]]; then pip install -U git+git://github.com/python/mypy git+git://github.com/dropbox/typed_ast flake8-bugbear; fi
|
||||
- if [[ $TRAVIS_PYTHON_VERSION == '2.7' ]]; then pip install -U git+git://github.com/google/pytype; fi
|
||||
|
||||
script:
|
||||
- $TEST_CMD
|
||||
|
||||
|
||||
Reference in New Issue
Block a user