Skip to content

Commit b2405c5

Browse files
authored
fix verify-hardcoded-versions issues (#2980)
Fixes these `pre-commit` errors ```text In file RAPIDS_BRANCH:1:9: release/26.04 warning: do not hard-code version, read from VERSION file instead In file RAPIDS_BRANCH:1:9: release/26.04 verify-hardcoded-version-ucxx............................................Failed - hook id: verify-hardcoded-version - exit code: 1 In file UCXX_BRANCH:1:9: release/0.49 warning: do not hard-code version, read from UCXX_VERSION file instead In file UCXX_BRANCH:1:9: release/0.49 ``` See rapidsai/pre-commit-hooks#121 for details Authors: - James Lamb (https://github.com/jameslamb) Approvers: - Kyle Edwards (https://github.com/KyleFromNVIDIA) URL: #2980
1 parent e9901c6 commit b2405c5

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.pre-commit-config.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,31 @@ repos:
150150
- id: verify-codeowners
151151
args: [--fix, --project-prefix=raft]
152152
- id: verify-hardcoded-version
153+
exclude: |
154+
(?x)
155+
(^|/)devcontainer[.]json$|
156+
(^|/)dependencies[.]yaml$|
157+
^[.]github/(workflows|ISSUE_TEMPLATE)/|
158+
(^|/)pom[.]xml$|
159+
^[.]pre-commit-config[.]yaml$|
160+
^conda/environments/|
161+
(^|/)UCXX_BRANCH$|
162+
(^|/)RAPIDS_BRANCH$|
163+
[.](md|rst)$
153164
- id: verify-hardcoded-version
154165
name: verify-hardcoded-version-ucxx
155166
args: [--fix, --version-file=UCXX_VERSION]
167+
exclude: |
168+
(?x)
169+
(^|/)devcontainer[.]json$|
170+
(^|/)dependencies[.]yaml$|
171+
^[.]github/(workflows|ISSUE_TEMPLATE)/|
172+
(^|/)pom[.]xml$|
173+
^[.]pre-commit-config[.]yaml$|
174+
^conda/environments/|
175+
(^|/)UCXX_BRANCH$|
176+
(^|/)RAPIDS_BRANCH$|
177+
[.](md|rst)$
156178
- id: verify-pyproject-license
157179
# ignore the top-level pyproject.toml, which doesn't
158180
# have or need a [project] table

0 commit comments

Comments
 (0)