mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
stubtest_stdlib: fail if there are unused allowlist entries (#6424)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -57,7 +57,8 @@ def run_stubtest(typeshed_dir: Path) -> int:
|
||||
"\nCommand run was: {}\n".format(" ".join(cmd)),
|
||||
file=sys.stderr,
|
||||
)
|
||||
print("stubtest failed", file=sys.stderr)
|
||||
print("\n\n", file=sys.stderr)
|
||||
print(f'To fix "unused allowlist" errors, remove the corresponding entries from {allowlist_dir}', file=sys.stderr)
|
||||
return e.returncode
|
||||
else:
|
||||
print("stubtest succeeded", file=sys.stderr)
|
||||
|
||||
Reference in New Issue
Block a user