-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
28 lines (26 loc) · 868 Bytes
/
Copy path.pre-commit-config.yaml
File metadata and controls
28 lines (26 loc) · 868 Bytes
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-toml
- id: check-merge-conflict
- id: check-added-large-files
args: ["--maxkb=512"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.4
hooks:
- id: ruff
args: ["--fix"]
files: ^apps/api/(src|tests)/
- id: ruff-format
files: ^apps/api/(src|tests)/
- repo: local
hooks:
- id: no-coauthored-by-claude
name: block stray Claude co-author trailers
entry: bash -c 'if git diff --cached --name-only | xargs -r grep -l "Co-Authored-By: Claude" 2>/dev/null; then echo "Remove Co-Authored-By: Claude lines"; exit 1; fi'
language: system
pass_filenames: false