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-2025-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.4.0.tar.gz (12.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_enabler-3.4.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file pytest_enabler-3.4.0.tar.gz.

File metadata

  • Download URL: pytest_enabler-3.4.0.tar.gz
  • Upload date:
  • Size: 12.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for pytest_enabler-3.4.0.tar.gz
Algorithm Hash digest
SHA256 45ece0ff22183503804d15307364290bc41fa027c843eb7046ee4f3439c8ba3f
MD5 4eac0647bb427db9eabacdb02dd6c741
BLAKE2b-256 7bd4508a0dee041565e0384d334040e139231e64551ded013d2a4d1d14c04143

See more details on using hashes here.

File details

Details for the file pytest_enabler-3.4.0-py3-none-any.whl.

File metadata

  • Download URL: pytest_enabler-3.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for pytest_enabler-3.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f7ef9d176c3a6d352841582124176633caec961d036abb114ac6c8c6b103de63
MD5 7c18446dd27450b0aefd5d257ce02b21
BLAKE2b-256 18abeecb363b6e4c368927956ed6cadf0123bea2e9d68d3b2720ab154126e587

See more details on using hashes here.

Supported by

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