mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-26 11:37:16 +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:
@@ -126,7 +126,7 @@ def main():
|
||||
flags.append('--strict-optional')
|
||||
if (major, minor) >= (3, 6):
|
||||
flags.append('--fast-parser')
|
||||
##flags.append('--warn-unused-ignores') # Fast parser and regular parser disagree.
|
||||
# flags.append('--warn-unused-ignores') # Fast parser and regular parser disagree.
|
||||
sys.argv = ['mypy'] + flags + files
|
||||
if args.verbose:
|
||||
print("running", ' '.join(sys.argv))
|
||||
|
||||
Reference in New Issue
Block a user