https://github.com/hasnep/pre-commit-roc
☑️ Pre-commit hooks for the Roc language
https://github.com/hasnep/pre-commit-roc
pre-commit roc roc-lang
Last synced: 2 months ago
JSON representation
☑️ Pre-commit hooks for the Roc language
- Host: GitHub
- URL: https://github.com/hasnep/pre-commit-roc
- Owner: Hasnep
- License: gpl-3.0
- Created: 2023-03-03T03:45:39.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-01T21:45:08.000Z (over 1 year ago)
- Last Synced: 2025-01-21T09:27:25.699Z (4 months ago)
- Topics: pre-commit, roc, roc-lang
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pre-commit-roc
[Pre-commit](https://pre-commit.com/) hooks for the [Roc language](https://roc-lang.org/).
## Usage
Once 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.
To pass additional arguments to the Roc CLI, use the `args` field.```yaml
# .pre-commit-config.yaml
repos:
- repo: https://github.com/hasnep/pre-commit-roc
rev: main
hooks:
- id: check
name: Check Roc code
args: [src/main.roc]
- id: format
name: Roc Check
- id: test
name: Run Roc tests
args: [src/main.roc]
```Then, whenever you make a commit, pre-commit will run `roc check`, `roc format` and `roc test` on your project.