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-3.3.0.tar.gz
(11.7 kB
view hashes)
Built Distribution
Close
Hashes for pytest_enabler-3.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8fde0b5db0686c81b316c0ff4f5f1c2725c78673f2001f762cd976b5ef4b09a |
|
MD5 | e46f0ea5e167657b478fc2118e2418da |
|
BLAKE2b-256 | 38789effa85a8ecbb1e1b1723cd436179e5f0e72334aaaa64c8f960be08eda43 |