{"id":21452269,"url":"https://github.com/packit/pre-commit-hooks","last_synced_at":"2025-07-14T22:30:54.500Z","repository":{"id":41996385,"uuid":"215783412","full_name":"packit/pre-commit-hooks","owner":"packit","description":"Our repo for managing pre-commit hooks","archived":false,"fork":false,"pushed_at":"2024-10-21T23:07:43.000Z","size":51,"stargazers_count":2,"open_issues_count":1,"forks_count":5,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-10-22T19:44:22.051Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/packit.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":"2019-10-17T12:10:27.000Z","updated_at":"2024-07-05T08:18:48.000Z","dependencies_parsed_at":"2023-01-28T04:25:11.232Z","dependency_job_id":"3da23d10-f2f8-41d5-b856-9677a887e60e","html_url":"https://github.com/packit/pre-commit-hooks","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/packit%2Fpre-commit-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/packit%2Fpre-commit-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/packit%2Fpre-commit-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/packit%2Fpre-commit-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/packit","download_url":"https://codeload.github.com/packit/pre-commit-hooks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226001588,"owners_count":17558006,"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-11-23T04:28:35.209Z","updated_at":"2024-11-23T04:28:35.803Z","avatar_url":"https://github.com/packit.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pre-commit-hooks\nOur repo for managing pre-commit hooks\n\n### Our hooks\n\n- `check-rebase` - Check if your branch is up-to-date with the upstream.\n    - Specify the url of the upstream repo in `args: [git://github...]`.\n- `validate-config` - Validate a [package config for Packit](https://packit.dev/docs/configuration).\n  - Requires `bash`.\n  - Runs the validation if there's a `packit` binary present.\n  - Passes if `packit` is not installed; this is useful if you can't install `packit` in the CI but still want to run the hook at least locally.\n- `validate-config-in-container` - Validate a [package config for Packit](https://packit.dev/docs/configuration).\n  - Uses [packit image](https://quay.io/repository/packit/packit) to run packit in a container.\n  - Requires `docker` binary to be present, which can be a problem for example in [pre-commit.ci](https://github.com/pre-commit-ci/issues/issues/11)\n\n### Using check-rebase with pre-commit\n\nAdd this to your `.pre-commit-config.yaml`\n\n    -   repo: https://github.com/packit/pre-commit-hooks\n        rev: v1.2.0\n        hooks:\n          - id: check-rebase\n            args: [upstream_url]\n\n### Using validate-config with pre-commit\n\nAdd this to your `.pre-commit-config.yaml`\n\n    -   repo: https://github.com/packit/pre-commit-hooks\n        rev: v1.2.0\n        hooks:\n          - id: validate-config\n\nor\n\n    -   repo: https://github.com/packit/pre-commit-hooks\n        rev: v1.2.0\n        hooks:\n          - id: validate-config-in-container\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpackit%2Fpre-commit-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpackit%2Fpre-commit-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpackit%2Fpre-commit-hooks/lists"}