{"id":15559899,"url":"https://github.com/czlee/pre-commit-hooks","last_synced_at":"2025-06-10T10:09:47.031Z","repository":{"id":146386440,"uuid":"423042235","full_name":"czlee/pre-commit-hooks","owner":"czlee","description":"Additional pre-commit hooks","archived":false,"fork":false,"pushed_at":"2021-10-31T03:44:57.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-12T12:15:43.315Z","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/czlee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-10-31T03:20:29.000Z","updated_at":"2021-10-31T03:45:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"0e9cdd36-c4e4-4e48-97d2-69a9c20839ee","html_url":"https://github.com/czlee/pre-commit-hooks","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czlee%2Fpre-commit-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czlee%2Fpre-commit-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czlee%2Fpre-commit-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czlee%2Fpre-commit-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/czlee","download_url":"https://codeload.github.com/czlee/pre-commit-hooks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czlee%2Fpre-commit-hooks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259053550,"owners_count":22798439,"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","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":"2024-10-02T15:59:27.294Z","updated_at":"2025-06-10T10:09:47.005Z","avatar_url":"https://github.com/czlee.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Miscellaneous pre-commit hooks\n==============================\n\nThis repository contains miscellaneous hooks for [pre-commit](https://pre-commit.com/) that I couldn't find anywhere else.\n\nAt the moment there's just one hook. I'm not really planning on actively maintaining this repository, but putting it up in case it saves anyone else a bit of time.\n\nExample entry in .pre-commit-config.yaml:\n``` yaml\n- repo: https://github.com/czlee/pre-commit-hooks\n  rev: v0.0.1\n  hooks:\n  - id: check-file-name-pattern\n    files: directory-to-check/.+\n    args:\n    - --pattern\n    - \"[a-z0-9\\\\-]+.xml\"\n```\n\nHooks available\n---------------\n\n### `check-file-name-pattern`\n\nChecks that file names match a given regex pattern.\n\nYou should specify a pattern using something like `args: ['--pattern=[a-z]+.xml']`. The default pattern is `.*`, which vacuously matches everything.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczlee%2Fpre-commit-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fczlee%2Fpre-commit-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczlee%2Fpre-commit-hooks/lists"}