Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 1.45 KB

README.rst

File metadata and controls

39 lines (27 loc) · 1.45 KB

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