{"id":18897772,"url":"https://github.com/zurutech/pre-commit-hooks","last_synced_at":"2026-01-30T14:34:26.186Z","repository":{"id":224114985,"uuid":"762458151","full_name":"zurutech/pre-commit-hooks","owner":"zurutech","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-19T14:25:54.000Z","size":983,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-06-19T15:28:56.798Z","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/zurutech.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,"zenodo":null}},"created_at":"2024-02-23T20:30:27.000Z","updated_at":"2025-06-19T14:25:37.000Z","dependencies_parsed_at":"2025-02-16T10:21:51.813Z","dependency_job_id":"dc6b6547-7d5a-440f-af4c-9d8d841fd61d","html_url":"https://github.com/zurutech/pre-commit-hooks","commit_stats":null,"previous_names":["zurutech/pre-commit-hooks"],"tags_count":59,"template":false,"template_full_name":null,"purl":"pkg:github/zurutech/pre-commit-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zurutech%2Fpre-commit-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zurutech%2Fpre-commit-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zurutech%2Fpre-commit-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zurutech%2Fpre-commit-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zurutech","download_url":"https://codeload.github.com/zurutech/pre-commit-hooks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zurutech%2Fpre-commit-hooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28914326,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T12:13:43.263Z","status":"ssl_error","status_checked_at":"2026-01-30T12:13:22.389Z","response_time":66,"last_error":"SSL_read: 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":"2024-11-08T08:39:31.092Z","updated_at":"2026-01-30T14:34:26.170Z","avatar_url":"https://github.com/zurutech.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pre Commit Hooks\n\nThis repository is used to store all scripts that are run in our CI pipelines during the pre-commit job. If you want them in your repository, you'll have to:\n\n- Allow your project under the CI_JOB_TOKEN Access Token settings\n- Add the pre-commit CI template in the .github/workflows file of your repository\n\n## Using pre-commit-hooks with pre-commit\n\nAll projects that have to use these pre-commit scripts need to be in the allow list of this repository (Settings \u003e CI/CD \u003e Token Access and write the repository location).\nIn the .github/workflows of your project you'll need to reference the CI Template we're using for the pre-commit by adding this:\n\n```yaml\ninclude:\n  - project: github.com/zurutech/pre-commit-hooks\n    file: .pre-commit.yml   \n    ref: main\n```\n\nThe template is located [here](https://github.com/zurutech/pre-commit-hooks.git), all the fiels can be overwritten in the pre-commit job of your CI in case you need to do something differently.\n\nWARNING: if the job gets the forbidden response when downloading the template, make sure that the PRE_COMMIT_TOKEN CI/CD variable is set under the group Zuru Home in gitlab. The token needs the priviledges to read the CI Templates repository.\n\nThe job will use the .pre-commit-config.yaml located in the root directoy of your repository. An example of how to use a hook:\n\n```yaml\n- repo: https://github.com/zurutech/pre-commit-hooks\n  rev: v5.0.0\n  hooks:\n    - id: copyright_updater\n```\n\nThe `rev` field indicates the tag or the release of the code of this repository. At the moment the `rev` will always have to be `latest` and only the code in the latest commit of the main branch will be used. Since there is no latest immutable tag (like a release) there will be a warning in the pre-commit job. The ```tag latest``` job in the pipeline will tag last commit on the main branch with latest.\n\n## Add pre-commit hooks scripts to this repo\n\nIf you need to add your script you'll have to:\n\n- Add the script in the pre_commit_hooks folder\n- Define the entrypoint in the setup.cfg in the `\\[options.entry_points\\]` section\n- Define the prehook and its arguments in the .pre-commit-hooks.yaml file. All options are visible [here](https://pre-commit.com/#new-hooks)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzurutech%2Fpre-commit-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzurutech%2Fpre-commit-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzurutech%2Fpre-commit-hooks/lists"}