Skip to main content

A pygments lexer for pre-commit output.

Project description

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',
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygments_pre_commit-2.3.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

pygments_pre_commit-2.3.0-py2.py3-none-any.whl (4.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pygments_pre_commit-2.3.0.tar.gz.

File metadata

  • Download URL: pygments_pre_commit-2.3.0.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for pygments_pre_commit-2.3.0.tar.gz
Algorithm Hash digest
SHA256 d937c99eb4ffc0545e1f6ececf3aa424b11de903490a8494f1af637ad060af4c
MD5 11538cf79f8e427ed9713b7e01bd89ca
BLAKE2b-256 f1a5eeeb6d10211af2bb1a1dc67d4d9dcabb8e4d19d1d6a65a150e18c6e8261d

See more details on using hashes here.

File details

Details for the file pygments_pre_commit-2.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pygments_pre_commit-2.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3145697184dcc69288de22227a0bd99d52cb3dc95a72e7a56d3c6096ced13d85
MD5 49bea44fca6c33421d051c243b762365
BLAKE2b-256 0d63bc41b45b54afc4d2f9c6f99c8634b3c2345c78f1643644b0694b16aba7a6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page