.. image:: https://img.shields.io/pypi/v/pytest-enabler.svg
:target: https://pypi.org/project/pytest-enabler
.. image:: https://img.shields.io/pypi/pyversions/pytest-enabler.svg
.. image:: https://github.com/jaraco/pytest-enabler/actions/workflows/main.yml/badge.svg
:target: https://github.com/jaraco/pytest-enabler/actions?query=workflow%3A%22tests%22
:alt: tests
.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json
:target: https://github.com/astral-sh/ruff
:alt: Ruff
.. image:: https://readthedocs.org/projects/pytest-enabler/badge/?version=latest
:target: https://pytest-enabler.readthedocs.io/en/latest/?badge=latest
.. image:: https://img.shields.io/badge/skeleton-2023-informational
:target: https://blog.jaraco.com/skeleton
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 <https://github.com/jaraco/pytest-enabler/blob/main/pytest_enabler/default.toml>`_.
Known to work with the following plugins:
- pytest-black
- pytest-cov
- pytest-flake8
- pytest-mypy
- pytest-ruff
- pytest-xdist
- pytest-ignore-flaky
Raw data
{
"_id": null,
"home_page": "https://github.com/jaraco/pytest-enabler",
"name": "pytest-enabler",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "",
"author": "Jason R. Coombs",
"author_email": "jaraco@jaraco.com",
"download_url": "https://files.pythonhosted.org/packages/93/d8/f0032af0f705b9141c2baceb09275262a2b145de8be969a5374ffa15bcdc/pytest-enabler-3.0.0.tar.gz",
"platform": null,
"description": ".. image:: https://img.shields.io/pypi/v/pytest-enabler.svg\n :target: https://pypi.org/project/pytest-enabler\n\n.. image:: https://img.shields.io/pypi/pyversions/pytest-enabler.svg\n\n.. image:: https://github.com/jaraco/pytest-enabler/actions/workflows/main.yml/badge.svg\n :target: https://github.com/jaraco/pytest-enabler/actions?query=workflow%3A%22tests%22\n :alt: tests\n\n.. image:: https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json\n :target: https://github.com/astral-sh/ruff\n :alt: Ruff\n\n.. image:: https://readthedocs.org/projects/pytest-enabler/badge/?version=latest\n :target: https://pytest-enabler.readthedocs.io/en/latest/?badge=latest\n\n.. image:: https://img.shields.io/badge/skeleton-2023-informational\n :target: https://blog.jaraco.com/skeleton\n\nThe ``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::\n\n [tool.pytest-enabler.black]\n addopts = \"--black\"\n\nThen, to temporarily disable a plugin, use pytest's built-in support for disabling a plugin::\n\n pytest -p no:black\n\n``enabler`` includes a `default config <https://github.com/jaraco/pytest-enabler/blob/main/pytest_enabler/default.toml>`_.\n\nKnown to work with the following plugins:\n\n- pytest-black\n- pytest-cov\n- pytest-flake8\n- pytest-mypy\n- pytest-ruff\n- pytest-xdist\n- pytest-ignore-flaky\n",
"bugtrack_url": null,
"license": "",
"summary": "Enable installed pytest plugins",
"version": "3.0.0",
"project_urls": {
"Homepage": "https://github.com/jaraco/pytest-enabler"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "2d1f0beefc5f355662e0cd23a1ed3730ba8be4481405183c2fd1dac94cc4a2c1",
"md5": "787c90d34429453a284d3386fba01799",
"sha256": "9463a3ee7d1e3b319666579371d585d10f3bb6e7fefe98b054f3b57c54553785"
},
"downloads": -1,
"filename": "pytest_enabler-3.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "787c90d34429453a284d3386fba01799",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 4623,
"upload_time": "2023-12-23T17:13:07",
"upload_time_iso_8601": "2023-12-23T17:13:07.301230Z",
"url": "https://files.pythonhosted.org/packages/2d/1f/0beefc5f355662e0cd23a1ed3730ba8be4481405183c2fd1dac94cc4a2c1/pytest_enabler-3.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "93d8f0032af0f705b9141c2baceb09275262a2b145de8be969a5374ffa15bcdc",
"md5": "4d8c0fe32d4fbea541407567a811962e",
"sha256": "62376d2fdae65ee967849fa3586f8ce68506988e94c64030c8ff2b038d6422c5"
},
"downloads": -1,
"filename": "pytest-enabler-3.0.0.tar.gz",
"has_sig": false,
"md5_digest": "4d8c0fe32d4fbea541407567a811962e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 9428,
"upload_time": "2023-12-23T17:13:08",
"upload_time_iso_8601": "2023-12-23T17:13:08.845685Z",
"url": "https://files.pythonhosted.org/packages/93/d8/f0032af0f705b9141c2baceb09275262a2b145de8be969a5374ffa15bcdc/pytest-enabler-3.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-23 17:13:08",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "jaraco",
"github_project": "pytest-enabler",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"tox": true,
"lcname": "pytest-enabler"
}