-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
31 lines (29 loc) · 978 Bytes
/
.pre-commit-config.yaml
File metadata and controls
31 lines (29 loc) · 978 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
# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
# Use workspace ruff (via uv) so pre-commit and CI always agree on the version.
# The single source of truth is the ruff version resolved in uv.lock.
- repo: local
hooks:
- id: ruff
name: ruff
entry: uv run ruff check --fix
language: system
types_or: [python, pyi]
- id: ruff-format
name: ruff-format
entry: uv run ruff format
language: system
types_or: [python, pyi]
- id: check-license-headers
name: check-license-headers
entry: uv run ddp license-headers --check
language: system
types_or: [python, shell]
pass_filenames: false