pytest-enabler


Namepytest-enabler JSON
Version 3.3.0 PyPI version JSON
download
home_pageNone
SummaryEnable installed pytest plugins
upload_time2024-09-12 00:32:36
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            .. 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-2024-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": null,
    "name": "pytest-enabler",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "\"Jason R. Coombs\" <jaraco@jaraco.com>",
    "download_url": "https://files.pythonhosted.org/packages/60/44/0487e4f884c8ab4edae24de07e8c62a5db4a406040713b9f726bd8974932/pytest_enabler-3.3.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-2024-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": null,
    "summary": "Enable installed pytest plugins",
    "version": "3.3.0",
    "project_urls": {
        "Source": "https://github.com/jaraco/pytest-enabler"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "38789effa85a8ecbb1e1b1723cd436179e5f0e72334aaaa64c8f960be08eda43",
                "md5": "e46f0ea5e167657b478fc2118e2418da",
                "sha256": "c8fde0b5db0686c81b316c0ff4f5f1c2725c78673f2001f762cd976b5ef4b09a"
            },
            "downloads": -1,
            "filename": "pytest_enabler-3.3.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e46f0ea5e167657b478fc2118e2418da",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 5499,
            "upload_time": "2024-09-12T00:32:35",
            "upload_time_iso_8601": "2024-09-12T00:32:35.583140Z",
            "url": "https://files.pythonhosted.org/packages/38/78/9effa85a8ecbb1e1b1723cd436179e5f0e72334aaaa64c8f960be08eda43/pytest_enabler-3.3.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "60440487e4f884c8ab4edae24de07e8c62a5db4a406040713b9f726bd8974932",
                "md5": "0acf5c64589543293f233a7699e43506",
                "sha256": "7780165bf20a1b67230c480e1ac0f3653c0d42947bd6d39505e5d9c883263bd1"
            },
            "downloads": -1,
            "filename": "pytest_enabler-3.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "0acf5c64589543293f233a7699e43506",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 11722,
            "upload_time": "2024-09-12T00:32:36",
            "upload_time_iso_8601": "2024-09-12T00:32:36.919790Z",
            "url": "https://files.pythonhosted.org/packages/60/44/0487e4f884c8ab4edae24de07e8c62a5db4a406040713b9f726bd8974932/pytest_enabler-3.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-09-12 00:32:36",
    "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"
}
        
Elapsed time: 0.30606s