Enable installed pytest plugins
The ‘enabler’ plugin allows configuration of plugins if present, but omits the settings if the plugin is not present. For example, to configure black to be enabled if the plugin is present, but not when it is not, add the following to your pyproject.toml:
[tool.pytest-enabler.black] addopts = "--black"
Then, to temporarily disable a plugin, use pytest’s built-in support for disabling a plugin:
pytest -p no:black
Known to work with the following plugins:
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for pytest_enabler-2.0.0-py3-none-any.whl