-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.pre-commit-config.example.yaml
More file actions
39 lines (36 loc) · 1.03 KB
/
.pre-commit-config.example.yaml
File metadata and controls
39 lines (36 loc) · 1.03 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
# Empathy Framework Pre-commit Hooks
# Copy this to .pre-commit-config.yaml in your project root
# Install: pip install pre-commit && pre-commit install
repos:
- repo: local
hooks:
# Security scan on every commit
- id: empathy-security
name: Empathy Security Scan
entry: empathy-scan security
language: system
types: [python]
pass_filenames: true
stages: [commit]
verbose: true
# Performance scan on push
- id: empathy-performance
name: Empathy Performance Scan
entry: empathy-scan performance
language: system
types: [python]
pass_filenames: true
stages: [push]
verbose: true
# Optional: Full scan manually
# Run with: pre-commit run empathy-full --all-files
- repo: local
hooks:
- id: empathy-full
name: Empathy Full Analysis
entry: empathy-scan all
language: system
types: [python]
pass_filenames: true
stages: [manual]
verbose: true