-
Notifications
You must be signed in to change notification settings - Fork 489
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
53 lines (52 loc) · 1.57 KB
/
.pre-commit-config.yaml
File metadata and controls
53 lines (52 loc) · 1.57 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
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
skip: []
submodules: false
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: local
hooks:
- id: warp-check-generated-files
name: "warp: regenerate generated files"
entry: python tools/pre-commit-hooks/check_generated_files.py
language: python
additional_dependencies: [numpy]
always_run: true
pass_filenames: false
- id: warp-check-version-consistency
name: "warp: check version consistency and regenerate version.h"
entry: python tools/pre-commit-hooks/check_version_consistency.py --verbose
language: python
always_run: true
pass_filenames: false
- 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.3
hooks:
# Update the uv lockfile
- id: uv-lock
- repo: https://github.com/crate-ci/typos
rev: v1.45.0
hooks:
- id: typos
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v22.1.2
hooks:
- id: clang-format
types_or: [c++, c, cuda]
files: ^warp/