No project description provided
Project description
dochooks
Some pre-commit hooks for docs.
Usage
.pre-commit-config.yaml
repos:
- repo: https://github.com/PFCCLab/dochooks
rev: v0.6.0
hooks:
- id: check-whitespace-between-cn-and-en-char
files: \.md$|\.rst$
- id: insert-whitespace-between-cn-and-en-char
files: \.md$|\.rst$
- id: check-case-conflict
Hooks
check-whitespace-between-cn-and-en-char
用于检查中英文之间是否有空格
insert-whitespace-between-cn-and-en-char
用于自动在中英文之间添加空格
check-case-conflict
用于检测在大小写不敏感文件系统(如 APFS、NTFS)上可能冲突的文件名例如仓库中已有 file.txt,新建 File.txt 时会发现冲突。
自定义错误信息:
- id: check-case-conflict
args: ['--error-message="错误:检测到大小写冲突!\n{conflicts}"']
Pragma
dochooks 支持 dochooks: skip-next-line 和 dochooks: 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
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 dochooks-0.6.0.tar.gz.
File metadata
- Download URL: dochooks-0.6.0.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28b093e08dccad16288b13cfc73897341973116f0417f231c1760461df171cb7
|
|
| MD5 |
3860eb942c137b549c64b5ad6e994435
|
|
| BLAKE2b-256 |
c899170a69d9f6a36f17c64bf7a549d59ca9e51fedd3eda7d67a71f2ec68a969
|
Provenance
The following attestation bundles were made for dochooks-0.6.0.tar.gz:
Publisher:
release.yml on PFCCLab/dochooks
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dochooks-0.6.0.tar.gz -
Subject digest:
28b093e08dccad16288b13cfc73897341973116f0417f231c1760461df171cb7 - Sigstore transparency entry: 573916987
- Sigstore integration time:
-
Permalink:
PFCCLab/dochooks@772452b29d4de1dc453c44c3347d05e5132d34a6 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/PFCCLab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@772452b29d4de1dc453c44c3347d05e5132d34a6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file dochooks-0.6.0-py3-none-any.whl.
File metadata
- Download URL: dochooks-0.6.0-py3-none-any.whl
- Upload date:
- Size: 9.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
65da3ed7f64ff7b8e5bbbb836118794b63b461cd8b6638e4a7ac8cc3858ae69a
|
|
| MD5 |
f58ea6d85aa9c3c43d9b57f44991916d
|
|
| BLAKE2b-256 |
b17a1d85c65d867141004001b3d7bb2d025201e2a306860503caec10bc7ad7ab
|
Provenance
The following attestation bundles were made for dochooks-0.6.0-py3-none-any.whl:
Publisher:
release.yml on PFCCLab/dochooks
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dochooks-0.6.0-py3-none-any.whl -
Subject digest:
65da3ed7f64ff7b8e5bbbb836118794b63b461cd8b6638e4a7ac8cc3858ae69a - Sigstore transparency entry: 573916989
- Sigstore integration time:
-
Permalink:
PFCCLab/dochooks@772452b29d4de1dc453c44c3347d05e5132d34a6 -
Branch / Tag:
refs/tags/v0.6.0 - Owner: https://github.com/PFCCLab
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@772452b29d4de1dc453c44c3347d05e5132d34a6 -
Trigger Event:
push
-
Statement type: