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:
[pytest.enabler.black] addopts = "--black"
Known to work with the following plugins:
pytest-black
pytest-cov
pytest-flake8
pytest-mypy
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-1.2.1.tar.gz
(7.1 kB
view hashes)
Built Distribution
Close
Hashes for pytest_enabler-1.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 66095075a7b636ddff5c7fab2cd051ba80ce470e169bd0ee51b58f2be8be130b |
|
MD5 | cf00d11f8a9f7631b22f54c2f54080b2 |
|
BLAKE2b-256 | 92dff2fcd522ac54d04f9a3649601764dc7f261172fc16373427f6d1397d0009 |