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.2.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aada54a5f58201ff78d3726840ac5d4e402bd53eed72b1887b66e49a4bae2299 |
|
MD5 | 77d2a7905fe83d63e1caf55a7cf8ae9c |
|
BLAKE2b-256 | f8fde249cc0fb9dcf20fb83dd849a8266305a11907170b97aa407ef14978a546 |
Close
Hashes for pygments_pre_commit-2.2.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bfc25fff11abfe7fc8c473e18d81114254caa48fb7336819db0c72da4c17b98 |
|
MD5 | 415d96acec407aeac7db19fffa57cef9 |
|
BLAKE2b-256 | 64636d5345ce72467cec0ff46f33c946b66457fbf62e263bc3fe2e27d97724d6 |