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 Ruff https://readthedocs.org/projects/pytest-enabler/badge/?version=latest https://img.shields.io/badge/skeleton-2024-informational

The enabler plugin allows configuration of plugins if present, but omits the settings if the plugin is not present. For example, the following config enables black to be enabled when present:

[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

enabler includes a default config.

Known to work with the following plugins:

  • pytest-black

  • pytest-cov

  • pytest-flake8

  • pytest-mypy

  • pytest-ruff

  • pytest-xdist

  • pytest-ignore-flaky

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-3.1.1.tar.gz (9.7 kB view hashes)

Uploaded Source

Built Distribution

pytest_enabler-3.1.1-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page