{"id":21903462,"url":"https://github.com/perigoso/pre-commit-hooks","last_synced_at":"2026-05-02T05:07:15.941Z","repository":{"id":117538872,"uuid":"530760519","full_name":"perigoso/pre-commit-hooks","owner":"perigoso","description":"Some hooks for pre-commit.","archived":false,"fork":false,"pushed_at":"2024-01-22T17:07:16.000Z","size":47,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T06:31:48.426Z","etag":null,"topics":["actions","before-commit","before-commit-hook","before-commit-hooks","hook","hooks","pre-commit","pre-commit-hook","pre-commit-hooks"],"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/perigoso.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}},"created_at":"2022-08-30T17:27:46.000Z","updated_at":"2022-08-30T18:18:14.000Z","dependencies_parsed_at":"2024-11-28T15:32:08.851Z","dependency_job_id":"cbd99df1-5917-41c1-82a6-19620d8d8748","html_url":"https://github.com/perigoso/pre-commit-hooks","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/perigoso/pre-commit-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perigoso%2Fpre-commit-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perigoso%2Fpre-commit-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perigoso%2Fpre-commit-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perigoso%2Fpre-commit-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/perigoso","download_url":"https://codeload.github.com/perigoso/pre-commit-hooks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/perigoso%2Fpre-commit-hooks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259723927,"owners_count":22901995,"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":["actions","before-commit","before-commit-hook","before-commit-hooks","hook","hooks","pre-commit","pre-commit-hook","pre-commit-hooks"],"created_at":"2024-11-28T15:27:49.666Z","updated_at":"2026-05-02T05:07:15.917Z","avatar_url":"https://github.com/perigoso.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"pre-commit-hooks\n================\n\nSome hooks for pre-commit.\n\nSee also: [pre-commit/pre-commit](https://github.com/pre-commit/pre-commit)\n\n### Using pre-commit-hooks with pre-commit\n\nAdd this to your `.pre-commit-config.yaml`\n\n```yaml\n-   repo: https://github.com/perigoso/pre-commit-hooks\n    rev: v0.3  # Use the ref you want to point at\n    hooks:\n    - id: check-hex-case\n    #   ...\n    - id: check-include-guards\n    #   ...\n    # - id: ...\n```\n\n### Hooks available\n\n#### `check-include-guards`\n\nChecks for unique relative named C header include guards.\nNaming is the file path relative to a specific directory, all upper case, with no prefix or suffix underscores.\n\n- Specify what relative path with `args: ['--relative-path=src']`\n\n#### `check-hex-case`\n\nChecks for and fixes hex number declaration case, as in upper/lower.\nBy default it fixes hex number declarations to lower case prefix, upper case digits (`0x55AA`)\nFlags can be used to change this behavior (`0X55AA`, `0x55aa`, `0X55aa`):\n\n- Set prefix to upper case with `args: ['--upper-prefix']`\n- Set digits to lower case with `args: ['--lower-digits']`\n\n#### `check-accidental-assignment`\n\nChecks for accidental assignments inside parentheses, and errors when found\n\n- Check for assignment in all parentheses found (defaults to if/while/for/switch only) `args: ['--strict']`\n- Fail silently without printing to terminal `args: ['--quiet']`\n- Skip checking parentheses whose keyword is on list `args: ['--skip-keywords while for printf']`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperigoso%2Fpre-commit-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fperigoso%2Fpre-commit-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fperigoso%2Fpre-commit-hooks/lists"}