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
- 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
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-2.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f6247b0f47c2df33ae334a65bbca7098ce1695e6b5713bc0257d7f7511abca6 |
|
MD5 | 8e3b56ad7176b3e10430a9c6e61c2f8a |
|
BLAKE2b-256 | e99c3d60b4b0d5738ab8fd508154e86bfe70f0637e3e42a02c4ae86e15d18eae |
Close
Hashes for pygments_pre_commit-2.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da788b6cd483342f7c6c9cc4379b3e1fd28e4a8f3311317f3807e1e89200ad7b |
|
MD5 | 60437093574ea2277013927ee37066b3 |
|
BLAKE2b-256 | fcc75ef533e410343037d2f7c86be8459cc6dc6ffa271429d50accf783f11900 |