-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
36 lines (32 loc) · 945 Bytes
/
.pre-commit-config.yaml
File metadata and controls
36 lines (32 loc) · 945 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
29
30
31
32
33
34
35
# Pre-commit hooks configuration for GenMetaBalls
# See https://pre-commit.com for more information
repos:
# Local hooks for custom formatting and linting
- repo: local
hooks:
# Format files (C++/CUDA + Python)
- id: format
name: Format files
entry: pixi run format
language: system
pass_filenames: false
always_run: true
stages: [pre-commit]
# Lint files (C++/CUDA + Python)
- id: lint
name: Lint files
entry: pixi run lint
language: system
pass_filenames: false
always_run: true
stages: [pre-commit]
# Run tests (pre-push hook)
- id: test
name: Run all tests
# reinstall genmetaballs to rebuild C++/CUDA code, then run tests
entry: pixi run test
language: system
pass_filenames: false
always_run: true
stages: [pre-push]
verbose: true