Skip to content

eberkund/foreplay

Repository files navigation

Foreplay

CI codecov Go Report Card GitHub Snap Status

A pre-commit hook manager.

How is this different from pre-commit?

It makes not attempt to install pre-commit hooks for you and as a result is a lot simpler. We assume the commands you want to run ahead of each commit have already been setup.

Two output methods

For when looks are more important than personality.

spinners: true

GitHub

Github Actions inspired configuration syntax.

hooks:
  - name: eslint
    run: |
      cd frontend
      npm lint

  - id: golangci-lint
    run: golangci-lint run

Installation

macOS

brew tap eberkund/foreplay
brew install foreplay

Linux

snap install foreplay

Or download install the .deb from the releases page.

Windows

scoop bucket add app https://github.com/eberkund/scoop-foreplay.git
scoop install foreplay

Go

go install github.com/eberkund/foreplay