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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74acc72a19fc14e22461e675eebcf5be3d151aba0569cf45f6d4fb3dedf76e21 |
|
MD5 | e0f84c6f5a061f0511fc22ad6be1d7e2 |
|
BLAKE2b-256 | 42586ff1e6ac2d441d467ae14403ef0eed7d43db0eb6560cbdb263cbd066045c |
Close
Hashes for pygments_pre_commit-1.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39f593e8f1dcdc88dc901726c80366c517a4440ddc67eca5b6479c4b978fc962 |
|
MD5 | c7c58bba233b3e69038ca02d4107a0f8 |
|
BLAKE2b-256 | 51b66486676432a2d8b4238d49adde588f9f9a86b0370e37cf2ea379974cfb2d |