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.3.0.tar.gz (11.7 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pytest_enabler-3.3.0.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for pytest_enabler-3.3.0.tar.gz
Algorithm Hash digest
SHA256 7780165bf20a1b67230c480e1ac0f3653c0d42947bd6d39505e5d9c883263bd1
MD5 0acf5c64589543293f233a7699e43506
BLAKE2b-256 60440487e4f884c8ab4edae24de07e8c62a5db4a406040713b9f726bd8974932

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pytest_enabler-3.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c8fde0b5db0686c81b316c0ff4f5f1c2725c78673f2001f762cd976b5ef4b09a
MD5 e46f0ea5e167657b478fc2118e2418da
BLAKE2b-256 38789effa85a8ecbb1e1b1723cd436179e5f0e72334aaaa64c8f960be08eda43

See more details on using hashes here.

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