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, 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
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.3.1.tar.gz
(9.2 kB
view hashes)
Built Distribution
Close
Hashes for pytest_enabler-2.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4202bd0ef31f3444785f36397918fec3d56f312ea657adf5a629e919a3644397 |
|
MD5 | 5f47ab01e3c3c3707ee4111c6f391147 |
|
BLAKE2b-256 | 51221c54c2138a924a0013315e2f276935cf36b5e7a547f7bd007550aa52e9a4 |