Skip to main content

Enable installed pytest plugins

Project description

https://img.shields.io/pypi/v/pytest-enabler.svg https://img.shields.io/pypi/pyversions/pytest-enabler.svg tests Code style: Black https://img.shields.io/badge/skeleton-2022-informational

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:

  • pytest-black

  • pytest-cov

  • pytest-flake8

  • pytest-mypy

  • pytest-xdist

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest-enabler-2.0.0.tar.gz (8.3 kB view hashes)

Uploaded source

Built Distribution

pytest_enabler-2.0.0-py3-none-any.whl (4.2 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page