Skip to content

Commit

Permalink
Run tender as pre-commit hook (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbarnea authored Aug 23, 2020
1 parent a94462c commit f753e5f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
repos:
- repo: local
hooks:
- id: tender
name: Run tender as a pre-comit hook (dogfooding)
entry: ./bin/tender.sh
language: python
always_run: true
verbose: true
pass_filenames: false
stages:
- commit
- repo: https://github.com/pre-commit/mirrors-isort
rev: v5.4.2
hooks:
Expand Down
4 changes: 4 additions & 0 deletions bin/tender.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
set -euxo pipefail
pip -q install -e .
tender

0 comments on commit f753e5f

Please sign in to comment.