-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
37 lines (37 loc) · 1.15 KB
/
.pre-commit-config.yaml
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-added-large-files
args: ["--maxkb=500"]
- id: check-yaml
args: [--allow-multiple-documents]
- id: fix-encoding-pragma
- id: detect-private-key
# - repo: https://github.com/pre-commit/mirrors-prettier
# rev: v4.0.0-alpha.8
# hooks:
# - id: prettier
- repo: local
hooks:
- id: trufflehog
name: TruffleHog
description: Detect secrets in your data.
entry: docker run -v "$(pwd):/workdir" -i --rm trufflesecurity/trufflehog:latest git file:///workdir --since-commit HEAD --fail
language: system
stages: ["push"]
- id: bash-config
name: No file extensions starting with .bash
entry: file extensions must not start with .bash
language: fail
files: '.*\.bash.*'
- id: lint
name: Run eslint via pnpm
entry: pnpm run lint
language: system
pass_filenames: false
- id: test
name: Run tests via pnpm
entry: pnpm run test-precommit
language: system
pass_filenames: false