pytest-enabler
Enable installed pytest plugins
Decision gist · record as of 2026-08-14
Yes. If you use pytest and manage optional plugins (formatters, linters, type checkers), enabler eliminates configuration friction by letting you define plugin settings that only apply when those plugins are installed. Low install friction, active maintenance, MIT license, and no known vulnerabilities make it a safe addition to any pytest workflow.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.9 or later.
- Low install friction with four lightweight runtime dependencies (toml, jaraco.functools, jaraco.context, importlib_resources).
- Actively maintained with a recent commit on 2026-04-13 and marked as Production/Stable.
License · maintenance · safety
MIT (permissive) — MIT license permits commercial and private use with minimal restrictions, making it safe to adopt in any project.
last release 2025-05-16 (455 days) · last repo commit 2026-04-13 · 6 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 90,868 downloads/mo, #13,559 on PyPI
Alternatives
Verify before relying
pip install pytest-enabler
# Add to pyproject.toml:
# [tool.pytest-enabler.black]
# addopts = "--black"
# Then run:
pytest- Whether the default config covers all common pytest plugins or requires manual setup for less common ones
- Performance impact when many plugins are conditionally enabled
What it is and what it does
pytest-enabler is a pytest plugin that lets you configure other pytest plugins in a way that gracefully handles their absence. Instead of failing when an optional plugin isn't installed, enabler simply skips its configuration. You define plugin settings in your pyproject.toml under [tool.pytest-enabler.*] sections, and enabler activates them only if those plugins are present.
The plugin comes with a default configuration covering common pytest extensions like pytest-black, pytest-cov, pytest-flake8, pytest-mypy, pytest-ruff, pytest-xdist, and pytest-ignore-flaky. You can override or extend these defaults in your own config, and you can still disable any plugin at runtime using pytest's standard -p no:plugin_name flag.
Use it for
- Set up a shared pytest configuration that works across teams without requiring everyone to install the same optional plugins
- Gradually roll out new pytest plugins (like code formatters or type checkers) without breaking existing test runs
- Maintain a single pyproject.toml that defines plugin behavior for developers who have different plugin suites installed
- Reduce boilerplate by letting enabler handle plugin discovery and conditional activation instead of manual pytest.ini tweaking
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
If you use pytest and manage optional plugins (formatters, linters, type checkers), enabler eliminates configuration friction by letting you define plugin settings that only apply when those plugins are installed. Low install friction, active maintenance, MIT license, and no known vulnerabilities make it a safe addition to any pytest workflow.
Install
pytest-enabler on PyPI
Before you install
Low install friction with four lightweight runtime dependencies (toml, jaraco.functools, jaraco.context, importlib_resources). Actively maintained with a recent commit on 2026-04-13 and marked as Production/Stable.
Requires Python 3.9 or later.
License in practice
MIT license permits commercial and private use with minimal restrictions, making it safe to adopt in any project.
Quickstart
pip install pytest-enabler
# Add to pyproject.toml:
# [tool.pytest-enabler.black]
# addopts = "--black"
# Then run:
pytest
Verify before relying
- Whether the default config covers all common pytest plugins or requires manual setup for less common ones
- Performance impact when many plugins are conditionally enabled
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 4 packagestomljaraco.functoolsjaraco.contextimportlib_resources |
| Maintenance | Actively maintained 455 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 90,868 / month, #13,559 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: PytestIntended Audience :: DevelopersProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: Only |
Evidence: pytest_enabler-3.4.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pytest plugin configuration”
- pytest-enablerA pytest plugin that conditionally enables other pytest plugins based…
- pytest-loggingA pytest plugin that configures Python logging to output to the…
- pytest-envA pytest plugin that loads environment variables from configuration…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also pytest-black · coverage-conditional-plugin · pytest-only · pytest-runner · pytest-skip-markers · conditional · pytest-mypy · pytest-socket · pytest-hot-reloading · logfire-api