Skip to content

Commit

Permalink
Replace local copyright check with pre-commit-hooks verify-copyright
Browse files Browse the repository at this point in the history
The local copyright.py script is bug-prone. Replace it with a more
robust centralized script from pre-commit-hooks.

Issue: rapidsai/build-planning#30
  • Loading branch information
KyleFromNVIDIA committed Mar 11, 2024
1 parent 0bb862c commit 01ed61d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 279 deletions.
15 changes: 9 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ repos:
args: ["--clean"]
- repo: local
hooks:
- id: copyright-check
name: copyright-check
entry: python ./ci/checks/copyright.py --git-modified-only --update-current-year
language: python
pass_filenames: false
additional_dependencies: [gitpython]
- id: cmake-format
name: cmake-format
entry: ./ci/checks/run-cmake-format.sh cmake-format
Expand Down Expand Up @@ -70,6 +64,15 @@ repos:
(?x)^(
^rapids-cmake/.*$
)
- repo: https://github.com/rapidsai/pre-commit-hooks
rev: v0.0.1
hooks:
- id: verify-copyright
files: |
(?x)
[.](cmake|cpp|cu|cuh|h|hpp|sh|pxd|py|pyx)$|
CMakeLists[.]txt$|
meta[.]yaml$
default_language_version:
python: python3
273 changes: 0 additions & 273 deletions ci/checks/copyright.py

This file was deleted.

0 comments on commit 01ed61d

Please sign in to comment.