{"id":24771074,"url":"https://github.com/pfcclab/dochooks","last_synced_at":"2025-07-23T05:33:36.012Z","repository":{"id":45729274,"uuid":"514246764","full_name":"PFCCLab/dochooks","owner":"PFCCLab","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-28T03:40:42.000Z","size":219,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-10T22:22:06.910Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PFCCLab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"patreon":"SigureMo","custom":["https://afdian.net/@siguremo","https://img.nyakku.moe/sponsor/alipay.png","https://img.nyakku.moe/sponsor/wechat.png"]}},"created_at":"2022-07-15T11:36:04.000Z","updated_at":"2025-03-21T15:59:13.000Z","dependencies_parsed_at":"2023-12-25T01:40:02.156Z","dependency_job_id":"715c74c7-b29c-43c1-9c26-a263075de540","html_url":"https://github.com/PFCCLab/dochooks","commit_stats":null,"previous_names":["pfcclab/dochooks"],"tags_count":4,"template":false,"template_full_name":"ShigureLab/python-lib-starter","purl":"pkg:github/PFCCLab/dochooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PFCCLab%2Fdochooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PFCCLab%2Fdochooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PFCCLab%2Fdochooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PFCCLab%2Fdochooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PFCCLab","download_url":"https://codeload.github.com/PFCCLab/dochooks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PFCCLab%2Fdochooks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266624732,"owners_count":23958299,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-29T03:57:50.295Z","updated_at":"2025-07-23T05:33:35.988Z","avatar_url":"https://github.com/PFCCLab.png","language":"Python","readme":"# dochooks\n\nSome pre-commit hooks for docs.\n\n\u003cp align=\"center\"\u003e\n   \u003ca href=\"https://python.org/\" target=\"_blank\"\u003e\u003cimg alt=\"PyPI - Python Version\" src=\"https://img.shields.io/pypi/pyversions/dochooks?logo=python\u0026style=flat-square\"\u003e\u003c/a\u003e\n   \u003ca href=\"https://pypi.org/project/dochooks/\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/pypi/v/dochooks?style=flat-square\" alt=\"pypi\"\u003e\u003c/a\u003e\n   \u003ca href=\"https://pypi.org/project/dochooks/\" target=\"_blank\"\u003e\u003cimg alt=\"PyPI - Downloads\" src=\"https://img.shields.io/pypi/dm/dochooks?style=flat-square\"\u003e\u003c/a\u003e\n   \u003ca href=\"LICENSE\"\u003e\u003cimg alt=\"LICENSE\" src=\"https://img.shields.io/github/license/PFCCLab/dochooks?style=flat-square\"\u003e\u003c/a\u003e\n   \u003cbr/\u003e\n   \u003ca href=\"https://github.com/astral-sh/uv\"\u003e\u003cimg alt=\"uv\" src=\"https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json\u0026style=flat-square\"\u003e\u003c/a\u003e\n   \u003ca href=\"https://github.com/astral-sh/ruff\"\u003e\u003cimg alt=\"ruff\" src=\"https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json\u0026style=flat-square\"\u003e\u003c/a\u003e\n   \u003ca href=\"https://gitmoji.dev\"\u003e\u003cimg alt=\"Gitmoji\" src=\"https://img.shields.io/badge/gitmoji-%20😜%20😍-FFDD67?style=flat-square\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Usage\n\n`.pre-commit-config.yaml`\n\n```yaml\nrepos:\n   - repo: https://github.com/PFCCLab/dochooks\n     rev: v0.5.0\n     hooks:\n        - id: check-whitespace-between-cn-and-en-char\n          files: \\.md$|\\.rst$\n        - id: insert-whitespace-between-cn-and-en-char\n          files: \\.md$|\\.rst$\n```\n\n## Hooks\n\n### `check-whitespace-between-cn-and-en-char`\n\n用于检查中英文之间是否有空格\n\n### `insert-whitespace-between-cn-and-en-char`\n\n用于自动在中英文之间添加空格\n\n## Pragma\n\ndochooks 支持 `dochooks: skip-next-line` 和 `dochooks: skip-line` 两种 pragma\n\n\u003c!-- prettier-ignore --\u003e\n```markdown\n\u003c!-- dochooks: skip-next-line --\u003e\n这是一段中文and English混合的text\n这是一段中文and English混合的text  \u003c!-- dochooks: skip-line --\u003e\n```\n","funding_links":["https://patreon.com/SigureMo","https://afdian.net/@siguremo","https://img.nyakku.moe/sponsor/alipay.png","https://img.nyakku.moe/sponsor/wechat.png"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfcclab%2Fdochooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpfcclab%2Fdochooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfcclab%2Fdochooks/lists"}