pygments-pytest


Namepygments-pytest JSON
Version 2.4.0 PyPI version JSON
download
home_pagehttps://github.com/asottile/pygments-pytest
SummaryA pygments lexer for pytest output.
upload_time2023-10-30 22:48:27
maintainer
docs_urlNone
authorAnthony Sottile
requires_python>=3.8
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            [![build status](https://github.com/asottile/pygments-pytest/actions/workflows/main.yml/badge.svg)](https://github.com/asottile/pygments-pytest/actions/workflows/main.yml)
[![Build Status](https://github.com/asottile/pygments-pytest/workflows/deploy/badge.svg)](https://github.com/asottile/pygments-pytest/actions)
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/asottile/pygments-pytest/main.svg)](https://results.pre-commit.ci/latest/github/asottile/pygments-pytest/main)

pygments-pytest
===============

A pygments lexer for pytest output

See [some demos](https://asottile.github.io/pygments-pytest)!  Or
[see it in action on pytest.org](https://pytest.org).

## Installation

```bash
pip install pygments-pytest
```

## Usage

This library provides a pygments lexer called `pytest`.

```rst
.. code-block:: pytest

    $ pytest test.py
    ========================== test session starts ===========================
    platform linux -- Python 3.6.6, pytest-4.0.1.dev43+g0d529847.d20181123, py-1.7.0, pluggy-0.8.0
    rootdir: /home/asottile/workspace/pytest, inifile: tox.ini
    collected 1 item

    test.py .                                                          [100%]

    ======================== 1 passed in 0.01 seconds ========================
```

This library also provides a sphinx extension.  It can be enabled by adding
`'pygments_pytest'` to the `extensions` setting in your `conf.py`.

The colors can be tweaked using the sphinx setting (in `conf.py`)
`pygments_pytest_ansi_colors`:

```python
pygments_pytest_ansi_colors = {
    'Cyan': '#06989a',
    'Green': '#4e9a06',
    'Red': '#c00',
    'Yellow': '#c4A000',
}
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/asottile/pygments-pytest",
    "name": "pygments-pytest",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "",
    "author": "Anthony Sottile",
    "author_email": "asottile@umich.edu",
    "download_url": "https://files.pythonhosted.org/packages/cc/c3/e244e7160dbf769d8b842a9c6acfb2247402b1f815e4834d7f4bbbf164ee/pygments_pytest-2.4.0.tar.gz",
    "platform": null,
    "description": "[![build status](https://github.com/asottile/pygments-pytest/actions/workflows/main.yml/badge.svg)](https://github.com/asottile/pygments-pytest/actions/workflows/main.yml)\n[![Build Status](https://github.com/asottile/pygments-pytest/workflows/deploy/badge.svg)](https://github.com/asottile/pygments-pytest/actions)\n[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/asottile/pygments-pytest/main.svg)](https://results.pre-commit.ci/latest/github/asottile/pygments-pytest/main)\n\npygments-pytest\n===============\n\nA pygments lexer for pytest output\n\nSee [some demos](https://asottile.github.io/pygments-pytest)!  Or\n[see it in action on pytest.org](https://pytest.org).\n\n## Installation\n\n```bash\npip install pygments-pytest\n```\n\n## Usage\n\nThis library provides a pygments lexer called `pytest`.\n\n```rst\n.. code-block:: pytest\n\n    $ pytest test.py\n    ========================== test session starts ===========================\n    platform linux -- Python 3.6.6, pytest-4.0.1.dev43+g0d529847.d20181123, py-1.7.0, pluggy-0.8.0\n    rootdir: /home/asottile/workspace/pytest, inifile: tox.ini\n    collected 1 item\n\n    test.py .                                                          [100%]\n\n    ======================== 1 passed in 0.01 seconds ========================\n```\n\nThis library also provides a sphinx extension.  It can be enabled by adding\n`'pygments_pytest'` to the `extensions` setting in your `conf.py`.\n\nThe colors can be tweaked using the sphinx setting (in `conf.py`)\n`pygments_pytest_ansi_colors`:\n\n```python\npygments_pytest_ansi_colors = {\n    'Cyan': '#06989a',\n    'Green': '#4e9a06',\n    'Red': '#c00',\n    'Yellow': '#c4A000',\n}\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A pygments lexer for pytest output.",
    "version": "2.4.0",
    "project_urls": {
        "Homepage": "https://github.com/asottile/pygments-pytest"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e6d85830c8084842be477e5ac950480e74f85d1416fbc917562c79dd21aac255",
                "md5": "2fa1fcae1582f90ffbf4b32b33279e1f",
                "sha256": "47c16e40d0367332c4a8222ef30f4054e0908faac82b59aa51352665570c120d"
            },
            "downloads": -1,
            "filename": "pygments_pytest-2.4.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2fa1fcae1582f90ffbf4b32b33279e1f",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3.8",
            "size": 5274,
            "upload_time": "2023-10-30T22:48:26",
            "upload_time_iso_8601": "2023-10-30T22:48:26.536198Z",
            "url": "https://files.pythonhosted.org/packages/e6/d8/5830c8084842be477e5ac950480e74f85d1416fbc917562c79dd21aac255/pygments_pytest-2.4.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ccc3e244e7160dbf769d8b842a9c6acfb2247402b1f815e4834d7f4bbbf164ee",
                "md5": "110ecd459870cedda86192cd3d6d7c55",
                "sha256": "b1b83f14b33709cb23c8298b8b2c2613dd554a916f8648d6b0e4c215cbcf4b93"
            },
            "downloads": -1,
            "filename": "pygments_pytest-2.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "110ecd459870cedda86192cd3d6d7c55",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 4891,
            "upload_time": "2023-10-30T22:48:27",
            "upload_time_iso_8601": "2023-10-30T22:48:27.911898Z",
            "url": "https://files.pythonhosted.org/packages/cc/c3/e244e7160dbf769d8b842a9c6acfb2247402b1f815e4834d7f4bbbf164ee/pygments_pytest-2.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-30 22:48:27",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "asottile",
    "github_project": "pygments-pytest",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "pygments-pytest"
}
        
Elapsed time: 0.17415s