forked from yamirghofran/dedicatedCV
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
53 lines (49 loc) · 1.42 KB
/
.pre-commit-config.yaml
File metadata and controls
53 lines (49 loc) · 1.42 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
46
47
48
49
50
51
52
53
repos:
# Built-in pre-commit hooks for general hygiene
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- id: check-yaml
files: \.(yml|yaml)$
- id: check-toml
- id: check-json
# Backend: Ruff formatter and linter (Python) using uv
- repo: local
hooks:
- id: backend-ruff-format
name: Backend Ruff Format
entry: uv run ruff format
language: system
types: [python]
files: ^backend/.*\.py$
pass_filenames: true
- id: backend-ruff-lint
name: Backend Ruff Lint
entry: uv run ruff check
language: system
types: [python]
files: ^backend/.*\.py$
pass_filenames: true
# Frontend: Biome format + lint (TS/TSX/JS) using Bun
- repo: local
hooks:
- id: frontend-biome-check
name: Frontend Biome Check
entry: bash -c 'cd frontend && bunx biome format --write'
language: system
files: ^frontend/src/.*\.(ts|tsx|js|jsx)$
pass_filenames: false
# Secret scanning with Gitleaks using existing config
- repo: https://github.com/gitleaks/gitleaks
rev: v8.18.4
hooks:
- id: gitleaks
name: Gitleaks Secret Scan
args:
- protect
- --staged
- --verbose
- --config=.gitleaks.toml