Skip to content

Option to disable plugin autoload entirely #3784

@ghost

Description

I'm wondering what you would think about adding a new option to entirely disable the auto-loading of plugins though setuptools entrypoints, either through a command line argument or through an environment variable.

Test runs don't always run in isolated environments and there are some disruptive pytest plugins out there such as pytest-relaxed that will break test runs of projects that aren't made for it.

We get this problem in Gentoo when running some packages in test mode, as we can see in this issue. We're patching things around to make things work, but really, the most elegant way to solve this problem would be if we could somehow disable autoloading entirely and explicitly load required plugins for each package.

Would a PR that add this feature be welcome?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: enhancementnew feature or API change, should be merged into features branchtype: feature-branchnew feature or API change, should be merged into features branchtype: proposalproposal for a new feature, often to gather opinions or design the API around the new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions