Skip to content

Commit d3a377b

Browse files
Use verify-hardcoded-version pre-commit hook
1 parent f0853df commit d3a377b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SPDX-FileCopyrightText: Copyright (c) 2023-2025, NVIDIA CORPORATION.
1+
# SPDX-FileCopyrightText: Copyright (c) 2023-2026, NVIDIA CORPORATION.
22
# SPDX-License-Identifier: Apache-2.0
33

44
repos:
@@ -68,7 +68,7 @@ repos:
6868
^testing/.*$
6969
)
7070
- repo: https://github.com/rapidsai/pre-commit-hooks
71-
rev: v1.2.1
71+
rev: v1.3.3
7272
hooks:
7373
- id: verify-copyright
7474
args: [--fix, --spdx]
@@ -83,6 +83,7 @@ repos:
8383
^[.]pre-commit-config[.]yaml$
8484
- id: verify-codeowners
8585
args: [--fix, --project-prefix=rapids, --no-cpp, --no-python]
86+
- id: verify-hardcoded-version
8687
- repo: https://github.com/shellcheck-py/shellcheck-py
8788
rev: v0.10.0.1
8889
hooks:

example/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ include(rapids-find)
2121

2222
rapids_cuda_init_architectures(integration)
2323

24+
# rapids-pre-commit-hooks: disable-next-line[verify-hardcoded-version]
2425
project(integration VERSION 26.04 LANGUAGES C CXX CUDA)
2526
message(STATUS "Example: CMAKE_CUDA_ARCHITECTURES: ${CMAKE_CUDA_ARCHITECTURES}")
2627

0 commit comments

Comments
 (0)