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 details)
Built Distribution
File details
Details for the file pytest_enabler-3.3.0.tar.gz
.
File metadata
- Download URL: pytest_enabler-3.3.0.tar.gz
- Upload date:
- Size: 11.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7780165bf20a1b67230c480e1ac0f3653c0d42947bd6d39505e5d9c883263bd1 |
|
MD5 | 0acf5c64589543293f233a7699e43506 |
|
BLAKE2b-256 | 60440487e4f884c8ab4edae24de07e8c62a5db4a406040713b9f726bd8974932 |
File details
Details for the file pytest_enabler-3.3.0-py3-none-any.whl
.
File metadata
- Download URL: pytest_enabler-3.3.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8fde0b5db0686c81b316c0ff4f5f1c2725c78673f2001f762cd976b5ef4b09a |
|
MD5 | e46f0ea5e167657b478fc2118e2418da |
|
BLAKE2b-256 | 38789effa85a8ecbb1e1b1723cd436179e5f0e72334aaaa64c8f960be08eda43 |