Skip to main content

build status Build Status pre-commit.ci status

pygments-pre-commit

A pygments lexer for pre-commit output

See some demos! Or see it in action on pre-commit.com.

Installation

pip install pygments-pre-commit

Usage

This library provides a pygments lexer called pre-commit.

.. code-block:: pre-commit

    $ pre-commit run
    passing..................................................................Passed
    failing..................................................................Failed
    - hook id: failing
    - exit code: 1

    ['.pre-commit-config.yaml', 'a']

    skipped (no files)...................................(no files to check)Skipped
    skip me.................................................................Skipped

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

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

pygments_pre_commit_ansi_colors = {
    'Black': '#2e3436',
    'Cyan': '#06989a',
    'Green': '#4e9a06',
    'Red': '#c00',
    'Yellow': '#c4A000',
    'Faint': '#ccc',
}

Metadata

Release files for pygments-pre-commit 2.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pygments-pre-commit 2.3.0
File Size Uploaded Provenance Actions
pygments_pre_commit-2.3.0.tar.gz 3.6 kB Without provenance Details for pygments_pre_commit-2.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pygments-pre-commit 2.3.0
File Interpreter ABI Platform Actions
pygments_pre_commit-2.3.0-py2.py3-none-any.whl Python 2, Python 3 none any Details for pygments_pre_commit-2.3.0-py2.py3-none-any.whl

Total release size: 7.7 kB

Release files / pygments_pre_commit-2.3.0.tar.gz

Download URL pygments_pre_commit-2.3.0.tar.gz
Size 3.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d937c99eb4ffc0545e1f6ececf3aa424b11de903490a8494f1af637ad060af4c
BLAKE2b-256 checksum
How to use checksums
f1a5eeeb6d10211af2bb1a1dc67d4d9dcabb8e4d19d1d6a65a150e18c6e8261d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Release files / pygments_pre_commit-2.3.0-py2.py3-none-any.whl

Download URL pygments_pre_commit-2.3.0-py2.py3-none-any.whl
Size 4.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3145697184dcc69288de22227a0bd99d52cb3dc95a72e7a56d3c6096ced13d85
BLAKE2b-256 checksum
How to use checksums
0d63bc41b45b54afc4d2f9c6f99c8634b3c2345c78f1643644b0694b16aba7a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.12

Security for pygments-pre-commit 2.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page