-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
63 lines (57 loc) · 1.71 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
63 lines (57 loc) · 1.71 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
54
55
56
57
58
59
60
61
62
63
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.0
hooks:
- id: ruff
name: ruff (lint)
args: ["--fix"]
files: "^(src|tests)/"
- id: ruff-format
name: ruff (format)
files: "^(src|tests)/"
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.15.0
hooks:
- id: mypy
files: "^(src|tests)/"
additional_dependencies:
- pydantic>=2.13.4
- numpy>=2.2
- pyarrow>=20
- packaging>=24
- repo: local
hooks:
- id: oxlint
name: oxlint (npm)
language: system
entry: bash -c 'cd npm && npx oxlint'
files: "^npm/"
types_or: [javascript]
pass_filenames: false
- id: oxfmt
name: oxfmt (npm)
language: system
entry: bash -c 'cd npm && npx oxfmt --check .'
files: "^npm/"
pass_filenames: false
- id: vulture
name: vulture (dead code)
language: system
entry: vulture src/flameox --min-confidence 80
files: "^src/flameox/"
pass_filenames: false
types: [python]
- id: large-file-check
name: large file detection
language: system
entry: bash -c 'find src -name "*.py" -type f -size +50000c | while read f; do echo "$f: exceeds 50KB limit ($(wc -c < "$f") bytes)"; exit 1; done'
pass_filenames: false
files: "."
always_run: true
- id: jscpd
name: duplicate code detection
language: system
entry: bash -c 'npx jscpd --min-tokens 50 --min-lines 5 --threshold 0 src/ npm/lib npm/bin 2>&1 | tail -5'
pass_filenames: false
files: "."
always_run: true