Skip to content

Commit c7fa7b1

Browse files
authored
add RAPIDS copyright pre-commit hook (rapidsai#1553)
Contributes to rapidsai/build-planning#30. Proposes adding the RAPIDS `verify-copyright` pre-commit hook, which automatically updates copyright dates for modified files. This also fixes one date in a file from rapidsai#1529. Authors: - James Lamb (https://github.com/jameslamb) Approvers: - Bradley Dice (https://github.com/bdice) - Kyle Edwards (https://github.com/KyleFromNVIDIA) URL: rapidsai#1553
1 parent fdef5f9 commit c7fa7b1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ repos:
8181
hooks:
8282
- id: ruff
8383
files: python/.*$
84+
- repo: https://github.com/rapidsai/pre-commit-hooks
85+
rev: v0.0.3
86+
hooks:
87+
- id: verify-copyright
8488

8589
default_language_version:
8690
python: python3

python/librmm/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# =============================================================================
2-
# Copyright (c) 2022, NVIDIA CORPORATION.
2+
# Copyright (c) 2024, NVIDIA CORPORATION.
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
55
# in compliance with the License. You may obtain a copy of the License at
@@ -21,7 +21,7 @@ project(
2121
VERSION "${RAPIDS_VERSION}"
2222
LANGUAGES CXX)
2323

24-
# Check if rmm is already available. If so, it is the user's responsibility to ensure that the CMake
24+
# Check if rmm is already available. If so, it's the user's responsibility to ensure that the CMake
2525
# package is also available at build time of the Python rmm package.
2626
find_package(rmm "${RAPIDS_VERSION}")
2727

0 commit comments

Comments
 (0)