Skip to content

Commit

Permalink
add RAPIDS copyright pre-commit hook (#1553)
Browse files Browse the repository at this point in the history
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 #1529.

Authors:
  - James Lamb (https://github.com/jameslamb)

Approvers:
  - Bradley Dice (https://github.com/bdice)
  - Kyle Edwards (https://github.com/KyleFromNVIDIA)

URL: #1553
  • Loading branch information
jameslamb authored May 6, 2024
1 parent fdef5f9 commit c7fa7b1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ repos:
hooks:
- id: ruff
files: python/.*$
- repo: https://github.com/rapidsai/pre-commit-hooks
rev: v0.0.3
hooks:
- id: verify-copyright

default_language_version:
python: python3
4 changes: 2 additions & 2 deletions python/librmm/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# =============================================================================
# Copyright (c) 2022, NVIDIA CORPORATION.
# Copyright (c) 2024, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
Expand All @@ -21,7 +21,7 @@ project(
VERSION "${RAPIDS_VERSION}"
LANGUAGES CXX)

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

Expand Down

0 comments on commit c7fa7b1

Please sign in to comment.