mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 12:14:27 +08:00
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:
@@ -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)$
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user