Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
60 lines (57 loc) · 2.06 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
60 lines (57 loc) · 2.06 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
# SPDX-FileCopyrightText: Copyright (c) 2022-2026, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
ci:
autofix_commit_msg: |
[pre-commit.ci] auto code formatting
autofix_prs: true
autoupdate_branch: ''
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: quarterly
skip: []
submodules: false
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v20.1.4
hooks:
- id: clang-format
types_or: [c, c++, cuda]
args: ['-fallback-style=none', '-style=file', '-i']
- repo: https://github.com/rapidsai/pre-commit-hooks
rev: v1.6.0
hooks:
- id: verify-copyright
args: [--fix, --spdx]
exclude: ^[.]github/ISSUE_TEMPLATE/bug_report[.]yml$
files: |
(?x)
[.](cmake|cpp|cu|cuh|h|hpp|inl|sh|py|yaml|yml)$|
CMakeLists[.]txt$|
^include/cuco/detail/__config$
- repo: local
hooks:
- id: check-doxygen
name: check-doxygen
entry: ./ci/pre-commit/doxygen.sh
files: ^include/
types_or: [file]
language: system
pass_filenames: false
verbose: true
- id: check-example-links
name: check-example-links
entry: ./ci/pre-commit/example_links.py
files: ^examples/
types: [cuda]
language: python
pass_filenames: false
verbose: true
additional_dependencies:
- --extra-index-url=https://pypi.anaconda.org/rapidsai-wheels-nightly/simple
- gitpython
default_language_version:
python: python3