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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygments_pre_commit-2.0.0.tar.gz.
File metadata
- Download URL: pygments_pre_commit-2.0.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
05c8c2c16b90b2cf0574690c8dbe8086d982913e104123c6330c0e31a677ae1f
|
|
| MD5 |
887b96ce1e464d5582b7eaa2cec1f0ba
|
|
| BLAKE2b-256 |
b378017db4f479d3bc892f29b449c4e882d73e097d168866e9d66def1344d932
|
File details
Details for the file pygments_pre_commit-2.0.0-py2.py3-none-any.whl.
File metadata
- Download URL: pygments_pre_commit-2.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28b2163eb6eeef7221318fe5014abaef6cd1c2a8404636040e0de32eb7bff7f1
|
|
| MD5 |
5a046a4d62bed8720677e23201954c16
|
|
| BLAKE2b-256 |
7f2b40f43d45794d5339a860d46e70a21f7ca13b694f3887cf47c4e9a238e347
|