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

@@ -15,7 +15,11 @@
[flake8]
ignore = F401, F811, F821, E127, E128, E301, E302, E305, E501, E701, E704, E999, 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.
builtins = StandardError,apply,basestring,buffer,cmp,coerce,execfile,file,intern,long,raw_input,reduce,reload,unichr,unicode,xrange
# Errors that we need to fix before enabling flake8 by default:
# 936 F821 undefined name - FIXME: re-enable and add missing imports
# 208 F821 undefined name - FIXME: re-enable and add missing imports
# 6 E999 invalid syntax - FIXME: re-enable after flake8 is running from Python 3.6