A pre-commit hook for running angreal tasks.
Add to your .pre-commit-config.yaml:
repos:
- repo: https://github.com/angreal/pre-commit-angreal
rev: v0.1.0
hooks:
- id: angreal
args:
- "test rust --unit-only"
- "test python"Each entry in args is a full angreal command. Commands run serially and fail fast on the first non-zero exit.
By default, the latest version of angreal is installed. To pin a specific version:
hooks:
- id: angreal
additional_dependencies: ["angreal==2.8.4"]
args:
- "test rust --unit-only"Run different tasks at different git stages:
hooks:
- id: angreal
alias: angreal-pre-commit
args: ["test rust --unit-only"]
stages: [pre-commit]
- id: angreal
alias: angreal-pre-push
args: ["test all"]
stages: [pre-push]