forked from Uniswap/interface
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlefthook.yml
More file actions
45 lines (40 loc) 路 1.16 KB
/
Copy pathlefthook.yml
File metadata and controls
45 lines (40 loc) 路 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Lefthook configuration optimized for performance
# https://github.com/evilmartians/lefthook/blob/master/docs/configuration.md
# Skip hooks in CI/rebase/merge
skip_output:
- meta
- summary
pre-commit:
parallel: true
commands:
fast-checks:
env:
CI: "true"
FORCE_COLOR: "0"
run: TERM=dumb bun g:pre-commit-checks
git-secrets:
run: |
export TERM=dumb
if command -v git-secrets &> /dev/null; then
git-secrets --register-aws > /dev/null
echo "Running git-secrets..."
git-secrets --pre_commit_hook -- "$@"
else
echo "git-secrets not installed, skipping..."
fi
trufflehog:
run: |
export TERM=dumb
if command -v trufflehog &> /dev/null; then
trufflehog git file://. --since-commit HEAD --only-verified --fail
else
echo "trufflehog not installed, skipping..."
fi
post-checkout:
commands:
generate-biome-config:
files: git diff --name-only {1} {2}
glob: "packages/biome-config/**"
run: |
echo "Biome config files changed, regenerating config..."
bun biome-config prepare