-
Notifications
You must be signed in to change notification settings - Fork 361
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
130 lines (129 loc) · 4.13 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
130 lines (129 loc) · 4.13 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
# SPDX-FileCopyrightText: Copyright (c) 2022-2026, NVIDIA CORPORATION.
# SPDX-License-Identifier: Apache-2.0
## https://pre-commit.com/
#
# Before first use: `pre-commit install`
# To run: `pre-commit run --all-files`
exclude: '^thirdparty'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-added-large-files
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.3
hooks:
- id: ruff-check
args: [--fix]
exclude: |
(?x)
^notebooks/algorithms/layout/Force-Atlas2[.]ipynb$
- id: ruff-format
- repo: https://github.com/asottile/yesqa
rev: v1.3.0
hooks:
- id: yesqa
additional_dependencies:
- flake8==7.1.1
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v20.1.8
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.3.3
hooks:
- id: verify-copyright
name: verify-copyright-cugraph
args: [--fix, --spdx]
files: |
(?x)
[.](cmake|c|cpp|cu|cuh|h|hpp|sh|pxd|py|pyx|rs|java)$|
CMakeLists[.]txt$|
CMakeLists_standalone[.]txt$|
[.]flake8[.]cython$|
meta[.]yaml$|
setup[.]cfg$|
pytest[.]ini$|
pyproject[.]toml$|
dependencies[.]yaml$|
recipe[.]yaml$|
^[.]pre-commit-config[.]yaml$|
^benchmarks/shared/build_cugraph_ucx/cugraph_ucx[.]dockerfile$|
^[.]github/ISSUE_TEMPLATE/.*[.]yml$|
[.]flake8$
exclude: |
(?x)^(
python/cugraph/cugraph/tests/structure/test_hypergraph[.]py$|
python/cugraph/cugraph/structure/hypergraph[.]py$|
cpp/src/generators/scramble[.]cuh$|
cpp/tests/utilities/cxxopts[.]hpp$
)
- id: verify-copyright
name: verify-copyright-pygraphistry
args: [--fix, --spdx, "--spdx-license-identifier=Apache-2.0 AND BSD-3-Clause"]
files: |
(?x)^(
python/cugraph/cugraph/tests/structure/test_hypergraph[.]py$|
python/cugraph/cugraph/structure/hypergraph[.]py$
)
- id: verify-copyright
name: verify-copyright-iu
args: [--fix, --spdx, "--spdx-license-identifier=Apache-2.0 AND BSL-1.0"]
files: |
(?x)^(
cpp/src/generators/scramble[.]cuh$
)
- id: verify-copyright
name: verify-copyright-cxxopts
args: [--fix, --spdx, "--spdx-license-identifier=Apache-2.0 AND MIT"]
files: |
(?x)^(
cpp/tests/utilities/cxxopts[.]hpp$
)
- id: verify-alpha-spec
- id: verify-codeowners
args: [--fix, --project-prefix=cugraph]
- id: verify-hardcoded-version
exclude: |
(?x)
devcontainer[.]json$|
dependencies[.]yaml$|
^[.]github/workflows/|
[.]md$|
pom[.]xml$|
^[.]pre-commit-config[.]yaml$|
[.]rst$|
^conda/environments/|
RAPIDS_BRANCH|
[.](png)$
- id: verify-pyproject-license
# ignore the top-level pyproject.toml, which doesn't
# have or need a [project] table
exclude: |
(?x)
^pyproject[.]toml$
- repo: https://github.com/sphinx-contrib/sphinx-lint
rev: v1.0.0
hooks:
- id: sphinx-lint
args: ["--enable=all", "--disable=line-too-long"]
- repo: https://github.com/rapidsai/dependency-file-generator
rev: v1.20.0
hooks:
- id: rapids-dependency-file-generator
args: ["--clean", "--warn-all", "--strict"]
- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.10.0.1
hooks:
- id: shellcheck
args: ["--severity=warning"]
- repo: https://github.com/zizmorcore/zizmor-pre-commit
rev: v1.24.1
hooks:
- id: zizmor