/ .pre-commit-config.yaml
.pre-commit-config.yaml
 1  repos:
 2    - repo: https://github.com/pycqa/flake8
 3      rev: 7.3.0
 4      hooks:
 5        - id: flake8
 6          args: [--config=.flake8]
 7  
 8    - repo: https://github.com/PyCQA/bandit
 9      rev: 1.8.3
10      hooks:
11        - id: bandit
12          args: [-ll, -ii, --skip, B101, -c, bandit.yaml]
13          files: ^(src|tools)/
14  
15    - repo: https://github.com/Yelp/detect-secrets
16      rev: v1.5.0
17      hooks:
18        - id: detect-secrets
19          args: [--baseline, .secrets.baseline]
20          stages: [manual]  # Disabled until .secrets.baseline is generated
21  
22    - repo: https://github.com/pre-commit/pre-commit-hooks
23      rev: v4.6.0
24      hooks:
25        - id: trailing-whitespace
26        - id: end-of-file-fixer
27        - id: check-yaml
28          args: [--allow-multiple-documents]
29        - id: check-added-large-files
30          args: [--maxkb=500]
31        - id: check-merge-conflict