Skip to content

stubtest unused allowlist for third party stubs #5654

Closed

Description

@Akuli

How does this work currently? In #5652, I found that in a third-party stub, I needed to delete unused entries to make stubtest pass. But there's still .github/workflows/stubtest-unused-allowlist.yml, which is for stdlib only. So it's fine to leave unused stdlib entries in a PR, but not for third-party libraries.

Why the inconsistency? Can we unify this somehow so that it actually makes sense?

Activity

  1. srittau commented on Jun 16, 2021

    @srittau
    Collaborator

    Yeah, I would prefer to accept unused allow lists in third-party stubs as well to keep friction as low as possible and then integrate it into the (weekly?) cron job.

  2. changed the title [-]stubtest unused allowlist[/-] [+]stubtest unused allowlist for third party stubs[/+] on Jun 16, 2021
  3. hauntsaninja commented on Jun 16, 2021

    @hauntsaninja
    Collaborator

    I just didn't add a Github action for automatically cleaning up third party stubtest allowlists. Once we have that, should be fine to use --ignore-unused-allowlist in stubtest_third_party.py.
    The logic for cleaning up third party allowlists should be pretty simple, since we only have one allowlist (as opposed to the common + python version + platform combination + etc that we have for stdlib).

  4. Akuli commented on Dec 5, 2021

    @Akuli
    CollaboratorAuthor

    We ended up going in a different direction in #6406.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    project: policyOrganization of the typeshed project

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions