Skip to content

angreal/pre-commit-angreal

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

pre-commit-angreal

A pre-commit hook for running angreal tasks.

Usage

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.

Pinning the angreal version

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"

Using with stages

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]

About

pre-commit hook for running angreal tasks

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages