A pygments lexer for pre-commit output.
Project description
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
hookid: failing
['.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',
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for pygments_pre_commit-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b85bebdff0f6170231441db68cb274d44cf0e65a195955d1fca17eb7646c08e |
|
MD5 | c2de4aad171399aa7e81d4c0cf11f73a |
|
BLAKE2b-256 | 6e675996dfc277ce356b04717416df221cb714fdfc33dbff058b885f2ca87e52 |
Close
Hashes for pygments_pre_commit-1.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b21621c5315afd59efa510443b1c09cd8206073b41bbea6e31f8db567d0fa149 |
|
MD5 | fa751fb04a72f99c1f1801f6bbc7b5ba |
|
BLAKE2b-256 | 306e269369673844e7bef7dd6ec3cdfc9272ecefe7bcd44148f07f179283574f |