Skip to main content

No project description provided

Project description

dochooks

Some pre-commit hooks for docs.

PyPI - Python Version pypi PyPI - Downloads LICENSE
uv ruff Gitmoji

Usage

.pre-commit-config.yaml

repos:
   - repo: https://github.com/PFCCLab/dochooks
     rev: v0.5.0
     hooks:
        - id: check-whitespace-between-cn-and-en-char
          files: \.md$|\.rst$
        - id: insert-whitespace-between-cn-and-en-char
          files: \.md$|\.rst$

Hooks

check-whitespace-between-cn-and-en-char

用于检查中英文之间是否有空格

insert-whitespace-between-cn-and-en-char

用于自动在中英文之间添加空格

Pragma

dochooks 支持 dochooks: skip-next-linedochooks: skip-line 两种 pragma

<!-- dochooks: skip-next-line -->
这是一段中文and English混合的text
这是一段中文and English混合的text  <!-- dochooks: skip-line -->

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dochooks-0.5.0.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

dochooks-0.5.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file dochooks-0.5.0.tar.gz.

File metadata

  • Download URL: dochooks-0.5.0.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for dochooks-0.5.0.tar.gz
Algorithm Hash digest
SHA256 72398b63ff565230fdf528bfeb54f35a898a94ee60d5e8997fa9fe86abe2bbd1
MD5 94d5f9bee10f59d7552f18738f24cd8d
BLAKE2b-256 38fad7f8bc17a614fdf11c0616be1a665c2104f5425428d13f108f6ac4257a11

See more details on using hashes here.

File details

Details for the file dochooks-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: dochooks-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for dochooks-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e91e4579abca0468e867bb924ac306c2e9128ed224c220724eefa2cf0403bdf0
MD5 8e24bd6bc56bfee341c41ed2b1088469
BLAKE2b-256 66c914aa9707f783cc677c728e78260ecec02e13e3f9ad38cb764260e4e2f81b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page