Enable flake8-pyi plugin to automatically include *.pyi files

This simplifies running flake8 tests and reduces the amount of F821 errors
reported (flake8-pyi enables support for forward references in *.pyi files).
The error code is left disabled until I clean up the remaining issues.
This commit is contained in:
Lukasz Langa
2016-12-21 00:44:17 -08:00
parent 52d9f815dd
commit 8c5c788a4d
7 changed files with 14 additions and 55 deletions

View File

@@ -116,7 +116,7 @@ mypy tests and flake8 tests by invoking:
```
(.venv3)$ python tests/mypy_test.py
...
(.venv3)$ python tests/flake8_test.py
(.venv3)$ flake8
...
```
To run the pytype tests, you need a separate virtual environment with
@@ -146,7 +146,7 @@ running mypy --python-version 3.2 --strict-optional # with 453 files
running mypy --python-version 2.7 --strict-optional # with 502 files
Running pytype tests...
Ran pytype with 244 pyis, got 0 errors.
Running flake8 on 886 .pyi files...
Running flake8...
flake8 run clean.
(.venv3)$
```