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:
6
.flake8
6
.flake8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user