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.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 209f00521c95461a2054a667a1f8d9ab3bcaee831361dba6f67e251c019aa415 |
|
MD5 | e9836f3f5e576bbe439ae35e00c3b1c2 |
|
BLAKE2b-256 | 5d20a6ec23e7aa85a149be6224255201483123372a226fe812832c56a6b6d3e0 |
Close
Hashes for pygments_pre_commit-1.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 352ee04a46d5fa416a728a0a946bc51a42b129fe48dd1656f925f8023c366ca9 |
|
MD5 | 621766508bab53444f7165613be65621 |
|
BLAKE2b-256 | 76df9c32e9d8274555e136fe26519ef8401f2e51356527642d370f253b71338c |