{"id":41208104,"url":"https://github.com/vdmitriyev/latex-git-hooks","last_synced_at":"2026-01-22T22:32:56.928Z","repository":{"id":260903961,"uuid":"864110993","full_name":"vdmitriyev/latex-git-hooks","owner":"vdmitriyev","description":"pre-commit hooks for LaTeX","archived":false,"fork":false,"pushed_at":"2025-11-02T17:37:05.000Z","size":83,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-02T19:13:41.941Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/vdmitriyev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-27T14:09:07.000Z","updated_at":"2025-11-02T17:37:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"0c935815-7e04-4262-b7f0-ed6ecb136e59","html_url":"https://github.com/vdmitriyev/latex-git-hooks","commit_stats":null,"previous_names":["vdmitriyev/latex-git-hooks"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/vdmitriyev/latex-git-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdmitriyev%2Flatex-git-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdmitriyev%2Flatex-git-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdmitriyev%2Flatex-git-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdmitriyev%2Flatex-git-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vdmitriyev","download_url":"https://codeload.github.com/vdmitriyev/latex-git-hooks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vdmitriyev%2Flatex-git-hooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28673277,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T20:48:19.482Z","status":"ssl_error","status_checked_at":"2026-01-22T20:48:14.968Z","response_time":144,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":"2026-01-22T22:32:56.366Z","updated_at":"2026-01-22T22:32:56.916Z","avatar_url":"https://github.com/vdmitriyev.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## About\n\nThis is a personal [git hook](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks) collection for LaTeX documents using [pre-commit](https://github.com/pre-commit/pre-commit). It helps you to increase quality of LaTeX document.\n\nFor more advanced [pre-commit](https://github.com/pre-commit/pre-commit) hooks for LaTeX documents check the project [jonasbb/pre-commit-latex-hooks](https://github.com/jonasbb/pre-commit-latex-hooks). A number of git hook in this repo are using some ideas from the mentioned project (primary the one using `pygrep` and `regex`).\n\n### Installation\n\n1. Install pre-commit:\n    ```\n    pip install --upgrade pre-commit\n    ```\n1. Add the hook to your `.pre-commit-config.yaml` file:\n    ```yaml\n    repos:\n    - repo: https://github.com/vdmitriyev/latex-git-hooks\n      rev: v0.2.0\n      hooks:\n      - id: validate-filename\n      - id: check-latex-packages\n      - id: ignore-auxiliary-files\n      - id: no-space-in-cite\n      - id: no-space-in-citep\n      - id: comma-in-eg-ie\n      - id: check-single-command-per-line\n      - id: run-linter-paperlinter\n\n    - repo: https://github.com/pre-commit/pre-commit-hooks\n      rev: v5.0.0\n      hooks:\n      - id: check-merge-conflict\n      - id: check-yaml\n    ```\n1. Run to install dependencies:\n    ```\n    pre-commit install\n    ```\n1. Run `pre-commit` explicitly:\n    ```\n    pre-commit run --all-files\n    ```\n1. Run `pre-commit` in verbose mode:\n    ```\n    pre-commit run --all-files --verbose\n    ```\n\n## Usage\n\nThe hook will automatically run before every commit. It will check your LaTeX files and report any issues. You will need to fix the issues before committing your changes.\n\n## Notes on `hooks`\n\n* `run-linter-paperlinter`\n    - linter hook will always exists successful and shows what has been found by linter\n    - As long as gnerated outputs will be supressed by `pre-commit`, run the hook as follows:\n        ```bash\n        pre-commit run run-linter-paperlinter --all-files --verbose\n        ```\n\n## LaTeX Linters\n\nBesides git hooks, `linters` for `LaTeX` could be used to improve quality. Please, consider following `linters`:\n\n* `chktexrc`\n    - ChkTeX - LaTeX semantic checker - https://www.nongnu.org/chktex/\n* `latexcheck-py`\n    - https://github.com/dainiak/latexcheck-py\n* `Paper-Linter`\n    - https://github.com/misc0110/Paper-Linter\n\n### Development: tests\n\n* Check `tests` directory to test using `pytests`\n* Check `tests/taskfiles` directory to test using local and remote git repositories\n\n### Development: taskfile\n\n* Prerequisite: [taskfile](https://taskfile.dev/installation/) must be installed\n* Package: list avaialbe tasks:\n\t```\n\ttask\n\t```\n\n## Configuration\n\nCurrently, extra no configuration other then options in [`.pre-commit-config.yaml`](#installation) are available\n\n## Contributing\n\nContributions are welcome! Feel free to submit pull requests with new features, bug fixes or tests.\n\n## License\n\nThis project is licensed under the MIT License. See the LICENSE file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdmitriyev%2Flatex-git-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvdmitriyev%2Flatex-git-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvdmitriyev%2Flatex-git-hooks/lists"}