Skip to main content

Enable installed pytest plugins

Project description tests Ruff

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:

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