Enable installed pytest plugins
Project description
The ‘enabler’ plugin allows configuration of plugins if present, but omits the settings if the plugin is not present. For example, to configure black to be enabled if the plugin is present, but not when it is not, add the following to your pyproject.toml:
[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
Known to work with the following plugins:
pytest-black
pytest-cov
pytest-flake8
pytest-mypy
pytest-ruff
pytest-xdist
Project details
Release history Release notifications | RSS feed
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-2.1.1.tar.gz
(8.3 kB
view hashes)
Built Distribution
Close
Hashes for pytest_enabler-2.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 452b2658c4460c61d0bdacb3ed4d51fbcfd9fb1b40ac06239ee6ea3f0d1ca275 |
|
MD5 | 023143e968d5a28185ff6e03b43b0961 |
|
BLAKE2b-256 | 580377299461a851d1dfffe949b1881a30b885f9bc367383e30a9a1b884d536d |