{"id":21161201,"url":"https://github.com/hasnep/pre-commit-roc","last_synced_at":"2026-01-02T07:21:28.252Z","repository":{"id":119581836,"uuid":"608950083","full_name":"Hasnep/pre-commit-roc","owner":"Hasnep","description":"☑️ Pre-commit hooks for the Roc language","archived":false,"fork":false,"pushed_at":"2023-10-01T21:45:08.000Z","size":23,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T09:27:25.699Z","etag":null,"topics":["pre-commit","roc","roc-lang"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Hasnep.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":"2023-03-03T03:45:39.000Z","updated_at":"2024-12-02T01:13:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"8a44873a-220c-461a-9b24-6ed01579975d","html_url":"https://github.com/Hasnep/pre-commit-roc","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/Hasnep%2Fpre-commit-roc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hasnep%2Fpre-commit-roc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hasnep%2Fpre-commit-roc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Hasnep%2Fpre-commit-roc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Hasnep","download_url":"https://codeload.github.com/Hasnep/pre-commit-roc/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243606954,"owners_count":20318314,"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":["pre-commit","roc","roc-lang"],"created_at":"2024-11-20T13:08:57.750Z","updated_at":"2026-01-02T07:21:28.221Z","avatar_url":"https://github.com/Hasnep.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# pre-commit-roc\n\n[Pre-commit](https://pre-commit.com/) hooks for the [Roc language](https://roc-lang.org/).\n\n## Usage\n\nOnce you've [installed the Pre-commit tool](https://pre-commit.com/#install) and run `pre-commit install` in your project's repository, you can add the hooks to the `.pre-commit-config.yaml` file.\nTo pass additional arguments to the Roc CLI, use the `args` field.\n\n```yaml\n# .pre-commit-config.yaml\nrepos:\n  - repo: https://github.com/hasnep/pre-commit-roc\n    rev: main\n    hooks:\n      - id: check\n        name: Check Roc code\n        args: [src/main.roc]\n      - id: format\n        name: Roc Check\n      - id: test\n        name: Run Roc tests\n        args: [src/main.roc]\n```\n\nThen, whenever you make a commit, pre-commit will run `roc check`, `roc format` and `roc test` on your project.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasnep%2Fpre-commit-roc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhasnep%2Fpre-commit-roc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhasnep%2Fpre-commit-roc/lists"}