pytest输出的pygments词法分析器。
项目描述
pygments-pytest
pytest输出的pygments词法分析器
查看一些演示!或者在pytest.org上查看其实际应用。
安装
pip install pygments-pytest
用法
此库提供了一个名为pytest
的pygments词法分析器。
.. code-block:: pytest
$ pytest test.py
========================== test session starts ===========================
platform linux -- Python 3.6.6, pytest-4.0.1.dev43+g0d529847.d20181123, py-1.7.0, pluggy-0.8.0
rootdir: /home/asottile/workspace/pytest, inifile: tox.ini
collected 1 item
test.py . [100%]
======================== 1 passed in 0.01 seconds ========================
此库还提供了一个sphinx扩展。您可以通过将'pygments_pytest'
添加到conf.py
中的extensions
设置来启用它。
可以使用sphinx设置(在conf.py
中)pygments_pytest_ansi_colors
来调整颜色。
pygments_pytest_ansi_colors = {
'Cyan': '#06989a',
'Green': '#4e9a06',
'Red': '#c00',
'Yellow': '#c4A000',
}
项目详情
关闭
pygments_pytest-2.4.0.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | b1b83f14b33709cb23c8298b8b2c2613dd554a916f8648d6b0e4c215cbcf4b93 |
|
MD5 | 110ecd459870cedda86192cd3d6d7c55 |
|
BLAKE2b-256 | ccc3e244e7160dbf769d8b842a9c6acfb2247402b1f815e4834d7f4bbbf164ee |
关闭
pygments_pytest-2.4.0-py2.py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 47c16e40d0367332c4a8222ef30f4054e0908faac82b59aa51352665570c120d |
|
MD5 | 2fa1fcae1582f90ffbf4b32b33279e1f |
|
BLAKE2b-256 | e6d85830c8084842be477e5ac950480e74f85d1416fbc917562c79dd21aac255 |