Commit graph

6 commits

Author SHA1 Message Date
Daniel Martí a07f1af706 pre-commit: do nothing if no apps are changed
Otherwise, we'd run lint on every single app.
2016-06-20 11:18:31 +01:00
Daniel Martí 61fa7a2ed7 hooks/pre-commit: only check changed files
Speeds up commiting a single file from ~2.6s to ~1.2s on my machine.
2016-06-17 11:36:18 +01:00
Daniel Martí c1894d3e41 pre-commit hook: use lint -f
This avoids calling rewritemeta separately, which means parsing all the
metadata files once instead of twice.

This reduces the running time of the pre-commit script from ~3s to ~2s
on my machine.
2015-12-07 20:13:36 +01:00
Daniel Martí 4acc100ea1 Add lint to pre-commit hook 2015-10-05 11:37:14 +02:00
Daniel Martí f9a55cb0af Unify metadata checks in verify-rewritemeta.sh 2015-09-28 16:52:12 -07:00
Daniel Martí 24b1ba0e8a Start shipping hooks, pre-commit with readmeta first 2014-05-27 14:07:48 +02:00