-
Notifications
You must be signed in to change notification settings - Fork 590
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
60 lines (59 loc) · 1.74 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
60 lines (59 loc) · 1.74 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
ci:
autofix_commit_msg: |
[pre-commit.ci] auto code formatting
autofix_prs: false
autoupdate_branch: ""
autoupdate_commit_msg: "[pre-commit.ci] pre-commit autoupdate"
autoupdate_schedule: quarterly
# pre-commit.ci has no network access, but uv-lock needs to resolve
# dependencies from remote indexes (PyPI, nvidia, pytorch).
# Lockfile freshness is checked by a separate CI workflow instead.
skip:
- uv-lock
submodules: false
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
args: [--maxkb=500]
- id: check-case-conflict
- id: check-illegal-windows-names
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.15.9
hooks:
# Run the linter.
- id: ruff
args: [--fix] # Apply fixes to resolve lint violations.
# Run the formatter.
- id: ruff-format
- repo: https://github.com/astral-sh/uv-pre-commit
# uv version.
rev: 0.11.4
hooks:
# Update the uv lockfile
- id: uv-lock
- repo: https://github.com/crate-ci/typos
rev: v1.45.0
hooks:
- id: typos
args: []
exclude: \.(js|css)$
- repo: local
hooks:
- id: check-warp-array-syntax
name: check warp array syntax
entry: python scripts/check_warp_array_syntax.py
language: python
types: [python]
exclude: ^(scripts/check_warp_array_syntax\.py)