Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 0 additions & 61 deletions .github/workflows/stubtest-unused-allowlist.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/stubtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- name: Install dependencies
run: pip install $(grep tomli== requirements-tests-py3.txt) $(grep mypy== requirements-tests-py3.txt)
- name: Run stubtest
run: python tests/stubtest_stdlib.py --ignore-unused-allowlist
run: python tests/stubtest_stdlib.py

stubtest-third-party:
name: Check third party stubs with stubtest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ jobs:
- name: Install dependencies
run: pip install $(grep tomli== requirements-tests-py3.txt) $(grep mypy== requirements-tests-py3.txt)
- name: Run stubtest
run: python tests/stubtest_stdlib.py --ignore-unused-allowlist
run: python tests/stubtest_stdlib.py

stubtest-third-party:
name: Check third party stubs with stubtest
Expand Down
3 changes: 0 additions & 3 deletions tests/stubtest_allowlists/py310.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ tkinter.EventType.__new__
_markupbase.ParserBase.error
asyncio.proactor_events._ProactorReadPipeTransport.__init__
distutils.command.bdist_wininst
logging.Formatter.__init__
logging.LoggerAdapter.__init__
logging.PercentStyle.__init__
py_compile.main
pyclbr.Class.__init__
pyclbr.Function.__init__
Expand Down
3 changes: 2 additions & 1 deletion tests/stubtest_stdlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
50 changes: 0 additions & 50 deletions tests/stubtest_unused.py

This file was deleted.