/ .pre-commit-config.yaml
.pre-commit-config.yaml
 1  repos:
 2    - repo: https://github.com/pre-commit/pre-commit-hooks
 3      rev: v6.0.0
 4      hooks:
 5        - id: trailing-whitespace
 6        - id: end-of-file-fixer
 7        - id: check-yaml
 8          args: ['--unsafe']
 9        - id: check-json
10        - id: check-merge-conflict
11        - id: detect-private-key
12        - id: check-added-large-files
13          args: ['--maxkb=500']
14  
15    - repo: https://github.com/gitleaks/gitleaks
16      rev: v8.30.0
17      hooks:
18        - id: gitleaks