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.4.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

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

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.4.0.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

dochooks-0.4.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for dochooks-0.4.0.tar.gz
Algorithm Hash digest
SHA256 f182cb598c1caf7148920e8cb952824908a244b544dcfd9b78e2682c8c1dfab8
MD5 c0f0551bf8dfd302ad4520165e2ceb03
BLAKE2b-256 7295605bc333737f4ad6f06feffea88dd14008a942bfa82558ce42f41dc30ade

See more details on using hashes here.

File details

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

File metadata

  • Download URL: dochooks-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 6.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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 61466d13e43ad665f6dbbe209cc7dd931beec5936130aa08661d0c8f485f0993
MD5 db5be0d0b22062bdc21ea5a387714064
BLAKE2b-256 554d85ea24aa18624f0a0512ae05a6509f53755c51de3885081c6bf0171a8661

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