-
Notifications
You must be signed in to change notification settings - Fork 454
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
46 lines (45 loc) · 1.37 KB
/
.pre-commit-config.yaml
File metadata and controls
46 lines (45 loc) · 1.37 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
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/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: system
types: [python]
exclude: ^(scripts/check_warp_array_syntax\.py|newton/_src/solvers/kamino/)