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.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d337401c31de498d9501438aa26a4d7107aa50e50c9a22f75d6dd845007355db |
|
MD5 | 0d0e6876747f0b0fce7a9bc30b17f874 |
|
BLAKE2b-256 | 767e93b737de8a3c158aa953e7c85e77dc806fae1cfe8c372f0948d842567488 |
Close
Hashes for pygments_pre_commit-1.3.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c123e1a4894de16878cd9644f515a6dba90befe19959fe6326462725c60332d9 |
|
MD5 | 5d4d57da5a38497294abe9b29119b746 |
|
BLAKE2b-256 | 67140f36c2f31d429ad5988a9bbdd0f296244a6b435398b96fc8a22141e21536 |